this repo contains the implementation of cpu scheduling algorithms in cpp.
- First Come First Serve (FCFS)
- Shortest Job First (SJF)
- Priority Scheduling
- Round Robin (RR)
- Clone the repository using `git clone https://github.com/arshchatrath/cpu-scheduling
- Navigate to the repository using
cd cpu-scheduling - Compile the code using
g++ -o cpu-scheduling main.cpp - Run the code using
./cpu-scheduling
- FCFS: `./cpu-scheduling -a FCFS -p 10 -b
- SJF: `./cpu-scheduling -a SJF -p 10 -b
- Priority Scheduling: `./cpu-scheduling -a Priority -p 10 -b
- Round Robin: `./cpu-scheduling -a RR -p 10 -b