A simulation for a mini operating system kernel implementing process scheduling algorithms (RR, HPF, SRTN).
make./os-sim -s <scheduling-algorithm> -f <processes-text-file> [-q <quantum>]<scheduling-algorithm>:rr,hpf, orsrtn<processes-text-file>: Path to the process list file (e.g.,processes.txt)-q <quantum>: (Optional) Quantum for RR scheduling
./os-sim -s srtn -f processes.txtos-sim: Main kernel simulator executableprocess: Simulated process executableprocesses.txt: Input file with process definitions
- The process generator spawns processes at their arrival times and sends them to the scheduler.
- The scheduler manages process execution according to the selected algorithm.
- See
scheduler.logandscheduler.perffor logs and statistics after running.