Bird
Raised Fist0

Given a disk head currently at track 50 with pending requests at tracks 45, 55, 60, and 40, which algorithm would service the requests in the order 45, 40, 55, 60?

easy🔍 Pattern Recognition Q2 of Q15
Operating Systems - Disk Scheduling - SSTF, SCAN, C-SCAN
Given a disk head currently at track 50 with pending requests at tracks 45, 55, 60, and 40, which algorithm would service the requests in the order 45, 40, 55, 60?
ASSTF, because it always picks the closest request next
BC-SCAN moving towards higher track numbers first
CSCAN moving towards lower track numbers first
DFCFS, since it processes requests in arrival order
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the order given

    The requests are serviced first towards lower tracks (45, 40), then higher (55, 60).
  2. Step 2: Match with algorithm behavior

    SCAN moves the head in one direction servicing all requests before reversing, matching this order.
  3. Step 3: Check SSTF and C-SCAN

    SSTF would pick 45, then 55 (closest next), not 40 after 45; C-SCAN moves in one direction only, so order differs.
  4. Final Answer:

    Option C -> Option C
  5. Quick Check:

    SCAN moves down servicing 45 and 40, then reverses up [OK]
Quick Trick: SCAN services requests in one direction then reverses [OK]
Common Mistakes:
MISTAKES
  • Assuming SSTF always picks closest globally
  • Confusing C-SCAN direction
Trap Explanation:
PITFALL
  • Candidates often confuse SSTF's closest-next with SCAN's directional servicing, leading to wrong order assumptions.
Interviewer Note:
CONTEXT
  • Checks if candidate can identify algorithm behavior from request servicing order.
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