This program simulates various CPU scheduling algorithms for a given process queue and provides important metrics such as CPU idle time, waiting time for each process, completion time for each process, and total execution time.
The CPU Scheduling Algorithm Simulator is a tool designed to help users understand and evaluate different CPU scheduling algorithms. It calculates and displays relevant metrics for a given set of processes and their characteristics.
-
Compile the source code using the provided shell scripts:
run_project.bat
for Windows Command Prompt.run_project.sh
for Unix-like systems (bash shell).
-
Run the compiled executable to input the number of processes, their arrival times, and burst times.
-
The program will simulate the selected CPU scheduling algorithm and provide various output metrics.
- Supports multiple CPU scheduling algorithms (FCFS, SJF, SRTF and Round Robin).
- Calculates and displays metrics including idle CPU time, waiting time, completion time, and total execution time.
- Organized project structure with separate files for utility functions, algorithms, and data structures.
-
Clone the repository to your local machine:
git clone https://github.com/Meet7834/CPU-Scheduling-Algorithms.git
-
Navigate to the project directory.
cd CPU-Scheduling-Algorithms
-
Compile and run the project:
- For Windows:
run_windows.bat
- For Unix based systems:
run_linux.sh