Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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.

You can’t perform that action at this time.