Bird
Raised Fist0

You are designing a disk scheduler for a real-time system where predictability and fairness are critical. Which algorithm would you choose and why?

hard🌍 Real-world Scenario Q9 of Q15
Operating Systems - Disk Scheduling - SSTF, SCAN, C-SCAN
You are designing a disk scheduler for a real-time system where predictability and fairness are critical. Which algorithm would you choose and why?
ASSTF, because it minimizes average seek time improving throughput
BC-SCAN, because it ensures uniform wait times and fairness across all requests
CSCAN, because it provides a predictable servicing order with bounded wait times
DFCFS, because it guarantees requests are serviced in arrival order
Step-by-Step Solution
Solution:
  1. Step 1: Identify real-time system requirements

    Predictability and fairness are key, requiring bounded and uniform wait times.
  2. Step 2: Evaluate SSTF

    SSTF minimizes seek time but can cause starvation and unpredictable delays.
  3. Step 3: Compare SCAN and C-SCAN

    SCAN provides bounded wait but can favor requests near reversal points; C-SCAN offers uniform wait times by scanning circularly.
  4. Step 4: Consider FCFS

    FCFS is fair but can have poor seek performance and unpredictable delays.
  5. Final Answer:

    Option B -> Option B
  6. Quick Check:

    C-SCAN balances fairness and predictability for real-time needs [OK]
Quick Trick: C-SCAN ensures uniform wait and fairness for real-time systems [OK]
Common Mistakes:
MISTAKES
  • Choosing SSTF for throughput over fairness
  • Confusing SCAN's fairness with C-SCAN's uniformity
Trap Explanation:
PITFALL
  • Candidates often pick SSTF for speed, ignoring fairness and predictability needs.
Interviewer Note:
CONTEXT
  • Evaluates ability to select algorithms based on system requirements.
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