• ↑↓ to navigate
  • ↵ to open
  • ⟶ to select
  • ⌘ ⌥ ↵ to open in a panel
  • ←→ to navigate
  • esc to dismiss
⌘ '
keyboard shortcuts

Framing

Compare disk scheduling algorithms — FCFS, SSTF, SCAN, C-SCAN, LOOK, and C-LOOK — analyzing seek time reduction, fairness, and practical performance.

Comparison

AlgorithmAvg SeekStarvationWait Time UniformityNotes
FCFSWorstNoPoorSimple, fair, but slow
SSTFBetterYes (edge tracks)PoorGreedy, may starve
SCANGoodNoMediumElevator, reverses at end
C-SCANGoodNoBetterOne direction only
LOOKGoodNoMediumStops at last request
C-LOOKGoodNoBestOne direction, stops at last

Key Insights

  1. FCFS is fair but slow — no optimization, serves as baseline
  2. SSTF minimizes seek but can starve requests at disk edges (greedy = not globally optimal)
  3. SCAN (elevator) eliminates starvation by sweeping back and forth, like an elevator serving floors
  4. C-SCAN improves uniformity — always goes in one direction, jumps back (no service on return)
  5. LOOK is practical SCAN — doesn’t go to physical disk end if no requests there
  6. C-LOOK is best practical — combines C-SCAN uniformity with LOOK efficiency

Synthesis

Modern systems typically use LOOK or C-LOOK (often called “deadline” or “noop” schedulers). The SCAN family beats FCFS and SSTF by eliminating starvation while maintaining good performance. Modern disks also do internal scheduling (NCQ) that may override OS scheduling.

Visual Explanation

disk_scheduling_compared A Disk Scheduling Comp Input B Disk Scheduling Comp Core Mechanism A->B triggers C Disk Scheduling Comp Output B->C produces

Semantic Network

semantic_disk_scheduling_compared THIS Disk Scheduling Comp REL1 Related Concept THIS--REL1 related REL2 Builds Into THIS--REL2 builds into

Connections