• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

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.

Connections