Lottery scheduling

Instead of working out who deserves the CPU, hold a raffle for it. Every job holds tickets, a random number is drawn each time slice, and whoever holds the winning ticket runs, following the Scheduling: Proportional Share chapter of OSTEP (Chapter 9). Each column is one 10 ms slice.

The ticket line for this draw

0100

 

Tickets held and CPU won

jobticketssharewon

 

One column per 10 ms slice: the job that held the winning ticket.

Keys: → next, ← back, space play or pause, 1–5 switch scenario.

What to take away

    How a draw works