A web-based visual tool to simulate and compare various Disk Scheduling Algorithms such as FCFS, SSTF, SCAN, C-SCAN, and C-LOOK. Built with Flask (backend) and HTML/CSS/JavaScript (frontend using Chart.js).
Disk Scheduling algorithms decide the order in which disk I/O requests are processed. Since disk access time depends heavily on the movement of the disk head, efficient scheduling is important to reduce the total seek time and improve performance.
- Processes requests in the order they arrive.
- Pros: Simple and fair
- Cons: High total seek time in worst cases
- Picks the request closest to the current head position.
- Pros: Better than FCFS in most cases
- Cons: May cause starvation for far requests
- The head moves in one direction servicing requests, then reverses.
- Pros: More uniform wait time
- Cons: May cause delay at extremes
- Like SCAN, but head returns to beginning after reaching end.
- Pros: Uniform wait time for all cylinders
- Cons: More total head movement than SCAN
- Like C-SCAN but only services requests in its path (ignores extremes with no requests).
- Pros: Better than C-SCAN
- Cons: Still more complex than SSTF
- Live animation of head movement using Chart.js
- Total seek time and head movement sequence
- Direction control (for SCAN family)
- Comparison with best-performing algorithm
- Clean, dark-themed UI using Tailwind CSS
- Deployable on Railway (backend) and Vercel (frontend)
- Python 3.7+
- Flask
- Node.js (if modifying frontend with build tools)
pip install -r requirements.txt
python app.py