CS FundamentalsVery hardHCLTech · Infosys placement pattern

A disk has cylinders 0–199 and the head is at cylinder 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65, 67. What is the total head movement under SCAN (elevator), which travels to the end of the disk before reversing?

  1. A. 236
  2. B. 351
  3. C. 331
  4. D. 299

Correct answer: C. 331

SCAN services every request in the direction of travel, continues to cylinder 199, then reverses: total movement 331 cylinders. LOOK would instead turn around right after the last request in that direction, giving only 299.

More Operating Systems questions

Exams that ask this topic