CS FundamentalsHardProduct-company MCQ pattern

Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Which two algorithms give the SAME total head movement for this queue?

  1. A. SCAN and LOOK
  2. B. SCAN and C-SCAN
  3. C. SSTF and LOOK
  4. D. SSTF and C-LOOK

Correct answer: C. SSTF and LOOK

SSTF goes 95, 110, 130, 160, 185 then 47, 25, 8, which is exactly LOOK's order here: both total 113 + 177 = 290. SCAN = 318 (goes on to 199), C-LOOK = 329, C-SCAN = 373.

More Operating Systems questions

Exams that ask this topic