This project is to implement the CPU scheduling policies, First-Come-First-Served (FCFS),
Round-Robin (RR), Shortest Process Next (SPN) and Shortest Remaining Time (SRI) described
in the textbook.
1. Your program named ‘mydispatcher” must accept two command-line arguments
(a) input.dat
(b) a scheduling policy (i.e. one of FCFS, RR, SPN and SRI)
For example,
> ./mydispatcher input.dat FCFS
If it is run with the wrong arguments or no arguments, it should print out the usage
instructions and exit.
For RR, you need to give an option for user to select default quantum size (1 second) or
user input.
Get Free Quote!
394 Experts Online