Author: Nishtha Mehta Anureet kaur
This repository contains an implementation of various CPU scheduling algorithms as part of an Operating Systems project.
In this project, we simulate and compare the behavior of multiple CPU scheduling algorithms. The simulator can produce a trace timeline or statistical summary for each algorithm, helping to visualize and analyze:
- Average turnaround time
- Normalized turnaround time
- Waiting time patterns
- First Come First Serve (FCFS)
- Round Robin (RR)
- Supports variable time quantum
- Shortest Process Next (SPN)
- Shortest Remaining Time (SRT)
- Highest Response Ratio Next (HRRN)
- Feedback (FB-1)
- Feedback with increasing quantum (FB-2i)
- Aging
Ensure you have a C++17‑capable compiler (GCC or Clang) installed.
# Clone the repo
git clone https://github.com/Nishthamehta11/OS_project.git
cd OS_project
# Build (replace g++-14 with your compiler if needed)
g++-14 main.cpp -std=c++17 -o scheduler