878 B
878 B
CS3502 Project 2: CPU Scheduling Simulation
This directory contains a simulator for various CPU scheduling algorithms.
Compilation
If you have Nix installed:
nix run .#cpu-schedulers
Otherwise, the code may be compiled using GNU Make:
make
./build/cpu-schedulers
Usage
This program supports seven scheduling algorithms:
sjf- Shortest Job Firstfcfs- First Come First Serveroundrobin- Round Robinpriority- Priority Queuepriorityaging- Priority Queue with Aginglottery- Lotterysrtf- Shortest Remaining Time First
The compare option can also be entered to run all schedulers at once.
Test data must be entered by the user; all time values must be given in
integers. Flags include -v for verbose debug output, and -m for
machine-readable output (prints data in CSV format).