Comparison of Disk Scheduling Algorithms

 

Disk Scheduling Algorithms Comparison

🔷 Given Example (Common for All)

  • Request queue:
    98, 183, 37, 122, 14, 124, 65, 67

  • Initial head position: 53


1. Summary Table

AlgorithmOrder StrategyTotal Head MovementAdvantagesDisadvantages
FCFSArrival order    640Simple, fairVery high seek time
SSTFClosest request first    236Good performanceStarvation possible
SCANMove to end, reverse    331Fair, better than FCFSGoes to disk ends unnecessarily
C-SCANOne direction, circular    382Uniform wait timeExtra jump cost
LOOKSCAN but stops at last request    299Efficient, less movementSlight waiting issues
C-LOOKCircular LOOK    322Uniform + avoids endsJump overhead

2. Key Differences

🔴 FCFS (First-Come First-Served)

  • Processes requests in arrival order

  • ❌ Large head movement

  • ✔️ Simple and fair


🟡 SSTF (Shortest Seek Time First)

  • Chooses nearest request

  • ✔️ Reduces seek time

  • ❌ May cause starvation


🔵 SCAN (Elevator Algorithm)

  • Moves in one direction → reverses

  • ✔️ Balanced performance

  • ❌ Goes to disk ends even if unnecessary


🟣 C-SCAN (Circular SCAN)

  • Moves in one direction only

  • ✔️ Uniform waiting time

  • ❌ Extra movement (jump to start)


🟢 LOOK

  • Like SCAN but stops at last request

  • ✔️ Avoids unnecessary movement

  • ✔️ More efficient than SCAN


🟠 C-LOOK

  • Like C-SCAN but stops at last request

  • ✔️ Uniform waiting + efficiency

  • ❌ Jump overhead still exists


3. Performance Insight

🔷 Best for Performance (Low Seek Time)

👉 LOOK / SSTF

🔷 Best for Fairness

👉 SCAN / C-SCAN / C-LOOK

🔷 Best for Simplicity

👉 FCFS


4. Key Trade-offs

GoalBest Algorithm
Minimum seek time    SSTF
Avoid starvation    SCAN / LOOK
Uniform wait time    C-SCAN / C-LOOK
Simplicity    FCFS

 5. Conceptual Understanding

👉 Disk scheduling is about trade-offs:

  • Performance vs Fairness

  • Efficiency vs Simplicity


6. Final Takeaways 

  • FCFS → simple but inefficient

  • SSTF → fast but unfair

  • SCAN → balanced

  • LOOK → optimized SCAN

  • C-SCAN → uniform waiting

  • C-LOOK → best balance of uniformity + efficiency

Comments

Popular posts from this blog

Operating Systems OS PCCST403 Semester 4 BTech KTU CS 2024 Scheme

Introduction to Operating System -Virtualization, Concurrency, and Persistence

Operating Systems PCCST403 Scheme and Syllabus