CS FundamentalsHardAmazon · Microsoft MCQ pattern

A disk has cylinders 0 to 199. The head is at cylinder 50 and moving towards cylinder 0. Pending requests: 182, 20, 97, 64, 160. Using LOOK (service requests in the current direction, reverse at the last request in that direction instead of running to the disk's edge), what is the total head movement?

  1. A. 250
  2. B. 192
  3. C. 232
  4. D. 212

Correct answer: B. 192

Downward first (towards 0): only 20 is below 50, so 50→20 = 30. Then reverse upward through 64, 97, 160, 182: 44+33+63+22 = 162. Total = 30 + 162 = 192 cylinders. Running all the way to cylinder 0 before reversing, as plain SCAN would, instead costs 232 (50→0 = 50, then 0→182 = 182).

More Operating Systems questions

Exams that ask this topic