Jump over idle time
transcript
Two kinds of jobs. A long rest. Most of the time is idle. Do not tick through it. Jump.
Ticking is correct. But it takes one step per unit. A jump takes one step. Both give the same answer.
Resting kinds wait in a queue. Each has a ready time. The front is ready first. The queue stays in time order.
Two kinds of fifty thousand jobs. A rest of a hundred thousand units. Almost five billion time units. A hundred thousand steps with a jump.
The ready heap is empty. Set the clock to the front's time. Release what is ready. Count the idle units.
Nothing can run before the first ready time. So the units in between are idle. Skipping them changes no job. The finish time stays exact.
Idle time costs nothing. Jobs cost a few steps. Try it in the lab. Full breakdown in the lecture.