Round Robin, by the Cursor¶
Exercise: 36k_scheduling · Fri Oct 23 · Length: 4:56 · Lecture: Week 9 · Round robin, by its rules · Explainer: Round Robin, by the Cursor
A narrated walk through the explainer, for after the Oct 13 lecture and before
Friday's session: scheduling as a mechanism and a policy, and the one field
the round-robin policy keeps between calls, its cursor. The process table is
drawn as a ring, and each call is a walk from the cursor: past every slot that
is not Runnable, around the end of the table, to the slot it returns. Two
broken cases follow, with what the test printed for each in a real run: one
that never wraps and one that begins every walk at slot 0. Then a lap with
nothing to run. The video ends on what the test checks and how to read the
line it prints. It shows no solution code: only the table and the cursor
around each call, with numbers that are examples, not the lecture's.
Download the video (MP4, 7 MB) · Captions (WebVTT) · All four Week 9 videos