Disk Scheduling Algorithms
The disk arm can only serve one cylinder at a time. Compare FCFS, SSTF, SCAN and C-SCAN by watching the head move and measuring total seek distance.
Disk scheduling is the operating system’s policy for ordering pending I/O requests. A good order reduces head movement, which reduces seek time and improves responsiveness for processes waiting on storage.
Real-world analogy: An elevator in a tall building
Cylinder numbers separated by commas or spaces.
Head movement map
Complete seek path
Cylinder position across · move order down
Seek trace
Ready to begin
The head starts at cylinder 53. Advance one step to see which request the selected policy handles next.
Serviced order
—
Seek distance so far
0 tracks
Average seek per request
—
| Step | Move | From → To | Seek | Reason |
|---|
FCFS · simplest baseline
Honours arrival order and is fair, but can create large, unnecessary head movements.
SSTF · shortest immediate move
Often lowers seek distance, but distant requests may wait when nearby requests keep arriving.
SCAN · elevator sweep
Provides predictable service by sweeping across the disk and reversing at an edge.
C-SCAN · one-way sweep
Services requests in one direction, then wraps to the other edge for more uniform waiting time.
1. Which algorithm always preserves the request arrival order?
2. SSTF selects the request with…