The code contains a simple CPU scheduler simulator to simulate the scheduling of the following methods:
- Firts-Come, First-Serve (FCFS);
- Shortest-Job-First- (SRTF);
- Priority scheduler;
- Round Robin (RR).
Using Linux for example:
-
To compile:
gcc cpu_scheduler_linux.c -o scheduler
-
To run: To compile, for exemple:
./scheduler
Feel free to use and get in touch with any questions.