Operating Systems
Course Home Feedback Lectures Projects Applications of multi-threading Lab assignment for 26th Sept 2018 for CSE 301 ostep-code CPU API Proportional Share Scheduling Overview Overview Instructor Webpage

Proportional Share Scheduling

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.