Skip to main content

Week 9: Machines that wait

Your laptop is running a dozen queues right now and its scheduler faces exactly the problem the passport office does.

3 May 2027

This week we look at the same object all over again, except this time inside a system that happens to keep a complete log of itself.

A CPU scheduler is a priority queue serving jobs of wildly varying length under unpredictable arrivals, and so, when you think about it, is a passport office. The only real difference is that one of them records every arrival, every service and every wait down to the microsecond, and then publishes its source code for anybody to read.

This is the week where everything from weeks 2 to 5 comes back with real data attached. We take a scheduler trace and find Little’s Law in it, and the utilisation wall from week 3, and the starvation from week 5, sitting there in the numbers.

What computing knows that counter design does not

The direction of the lesson

It runs both ways. Schedulers have things to teach a service counter, and the fairness arguments from week 5 apply just as sharply to the software that decides which request gets dropped.

After this lecture

You can read a trace, and you have ageing in your toolkit for The Redesign.

Teaching team