The time slice
Three long jobs are running when you press a key. How long until the keypress gets the CPU, and what does a quicker answer cost?
One CPU, three long jobs already running, and a keypress that arrives 100 ms in and needs 5 ms. Pick the rule that decides who runs next and how long a turn lasts. The panels show how long the keypress waits, the average time to finish, and the CPU lost to swapping jobs.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Processes, Threads & the Kernel
The whole idea this lab came from, told start to finish.
on the path Module 3 of 7 in How Computers Work: Many programs, one machine
The lessons, boards and videos around this lab, in reading order.