Skip to content

Latest commit

 

History

History
 
 

cpu-sched-lottery

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Proportional Share Scheduling

Code from OSTEP chapter Scheduling: Proportional Share.

Compile with:

prompt> gcc -o lottery lottery.c -Wall

Run like this:

./lottery 1 100

which uses random seed '1' to run a little lottery 100 different times.

Read the source code for details.