Index of /perry/os/ostep/code/cpu-sched-lottery

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]README.md2019-05-30 13:37 367  
[TXT]lottery.c2019-05-30 13:37 1.5K 
[TXT]README.html2021-05-31 14:59 3.7K 

ostep-code/cpu-sched-lottery

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.