This C++ code demonstrates 4 scheduling algorithms:
Shortest Remaining Time Next (SRTN)
Shortest Job First-based pre-emptive Priority (SJFP)
Two-level Queue Scheduling
Lottery Scheduling
-
Install GCC from https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
-
Build cpp file with the following command
$ g++ os_assignment.cpp -o main