This project is a web-based CPU Scheduler that allows users to input processes and select a scheduling algorithm to visualize the results. The supported algorithms include FCFS, SJF, Priority Scheduling, and Round Robin.
- Algorithm Selection: FCFS, SJF, Priority Scheduling, Round Robin
- Process Input: Enter processes in
pid,burst_time,priority
format - Dynamic Results: View waiting time and turnaround time for each process
- Responsive Design
- Git
- C++ Compiler
- Crow (C++ microframework)
-
Clone the Repository:
git clone https://github.com/Harshtiw108/CPU_Scheduler.git cd CPU_Scheduler
-
Setup Backend:
- Ensure you have a C++ compiler installed.
- Install Crow:
sudo apt-get install libcrow-dev
- Compile the backend:
cd backend mkdir build cd build cmake .. make ./cpu_scheduler
-
Serve Frontend:
- Open `index.html