A web-based CPU Scheduling Simulator that visualizes CPU scheduling algorithms using Gantt Charts and computes key performance metrics such as Completion Time (CT), Turnaround Time (TAT), and Waiting Time (WT).
cpu-scheduling-simulator/ ├── algorithm/ (FCFS, SJF, SRTF, Priority, RR) ├── public/ (CSS, JavaScript files) ├── views/ (EJS templates) ├── app.js (Main server file) ├── package.json (Project dependencies)
git clone https://github.com/VTharakaRam/CPU-Scheduling-Simulator.git
cd cpu-scheduling-simulator
npm install
node app.js
Open browser and go to:
http://localhost:3000
- Select a scheduling algorithm (FCFS, SJF, SRTF, Priority, RR)
- Enter process details:
- Arrival Time
- Burst Time
- Priority (if required)
- Enter Time Quantum (only for Round Robin)
- Click Solve
- View results:
- Gantt Chart
- Completion Time
- Turnaround Time
- Waiting Time
- Average metrics
This project simulates CPU scheduling algorithms used in Operating Systems. It dynamically takes process inputs, executes the selected scheduling algorithm on the backend, and visualizes execution using a Gantt Chart along with calculated performance metrics.
Tharaka Ram