CS FundamentalsVery hardIBM · Deloitte pattern

A disk has cylinders 0–199 and the head is at cylinder 76, moving towards cylinder 0. Pending requests: 45, 130, 12, 180, 90, 150, 60, 170. What is the total head movement under LOOK, which reverses as soon as there are no more requests ahead of it?

  1. A. 260
  2. B. 247
  3. C. 232
  4. D. 256

Correct answer: C. 232

LOOK services requests in the direction of travel but reverses immediately after the farthest pending request in that direction, instead of running all the way to the disk's edge: total movement 232 cylinders, versus 256 for full SCAN.

More Operating Systems questions

Exams that ask this topic