Bird
Raised Fist0

In a system with highly skewed request distribution clustered near one end of the disk, which disk scheduling algorithm would minimize starvation and why?

hard⚖️ Approach Comparison Q8 of Q15
Operating Systems - Disk Scheduling - SSTF, SCAN, C-SCAN
In a system with highly skewed request distribution clustered near one end of the disk, which disk scheduling algorithm would minimize starvation and why?
ASSTF, because it always picks the closest request, preventing starvation
BSCAN, because it services requests in one direction and reverses, ensuring all are eventually served
CFCFS, because it processes requests in arrival order, avoiding starvation
DC-SCAN, because it moves in one direction and jumps back, providing uniform wait times
Step-by-Step Solution
Solution:
  1. Step 1: Analyze skewed request distribution

    Requests clustered near one end can cause starvation in SSTF if head stays near cluster.
  2. Step 2: Compare SCAN and C-SCAN

    SCAN reverses direction, possibly delaying requests at far end; C-SCAN moves in one direction and jumps back, ensuring fairness.
  3. Step 3: Identify algorithm minimizing starvation

    C-SCAN provides uniform wait times by servicing requests in a circular manner.
  4. Final Answer:

    Option D -> Option D
  5. Quick Check:

    C-SCAN's circular scan prevents starvation in skewed distributions [OK]
Quick Trick: C-SCAN's circular movement ensures fairness in skewed loads [OK]
Common Mistakes:
MISTAKES
  • Assuming SSTF prevents starvation
  • Confusing SCAN's reversal with uniform wait
Trap Explanation:
PITFALL
  • Candidates often overlook C-SCAN's fairness advantage in skewed request patterns.
Interviewer Note:
CONTEXT
  • Tests ability to apply algorithms to non-uniform real-world scenarios.
Master "Disk Scheduling - SSTF, SCAN, C-SCAN" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes