Live Demo:
https://harshnag1.github.io/cpu_scheduler_simulator/
A pure client-side engine for visualizing OS process scheduling.
This project is a standalone, browser-based CPU scheduling simulator.
No backend, no setup — just open and run.
Everything (algorithms, metrics, Gantt charts) runs directly in your browser using Vanilla JS, making it fast, lightweight, and perfect for static hosting.
No build steps. No virtual environments. No local servers.
- Clone or download this repository
- Open the
Static CPUdirectory - Double-click
index.html
Or just use the live version 👇
👉 https://harshnag1.github.io/cpu_scheduler_simulator/
The client-side engine supports:
- FCFS (First Come First Serve)
- SJF (Shortest Job First) — Non-preemptive
- SRTF (Shortest Remaining Time First) — Preemptive
- Round Robin — With configurable Time Quantum
- Priority — Non-preemptive
- Preemptive Priority
- Aging Priority — Prevents starvation dynamically
- Animated Gantt Charts → Watch processes move step-by-step
- Live Metrics → Waiting Time, Turnaround Time, Response Time, CPU Utilization
- Algorithm Comparison → Run all 7 algorithms on same data
- Zero Config → Works offline, no install needed
Static CPU/
├── index.html # Entry point
├── css/ # Styling
└── js/ # Core logic + scheduling engine