CS FundamentalsVery hardGATE CS

Cylinders 0–49, head at 20, previous request was at 25 (so the head is moving toward 0). Requests: 10, 22, 20, 2, 40, 6, 38. What is the total head movement under SSTF and under LOOK?

  1. A. 56 and 60
  2. B. 60 and 58
  3. C. 60 and 56
  4. D. 146 and 56

Correct answer: C. 60 and 56

SSTF order: 20, 22, 10, 6, 2, 38, 40 (the request at 20 costs nothing), total 60. LOOK moving down: 20 → 2 (18) then up to 40 (38) = 56.

More Operating Systems questions

Exams that ask this topic