The clock moves by the units used
transcript
Tasks take turns on one worker. Each turn is five units. When does the last task finish?
The first task needs three units. The second task needs six. A turn is five units long.
The first task runs. It needs three. It is done, so it does not go back. The second runs five units. It has one left, so it goes to the back. Its last turn runs one unit. Done at nine.
A whole turn adds five every time. That gives five and fifteen. Wrong. Units used give three and nine.
A turn is one queue step. Three turns, nine units. Cost follows turns, not work.
Replaying every unit costs the total work. A turn is one queue step. That is far fewer steps. A hundred thousand tasks make this matter a lot. So the queue acts out turns, not units.
Move the clock by what was used. Not by the whole turn. Full breakdown in the lecture.