CS FundamentalsHardDeloitte · IBM campus 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 LOOK, which reverses as soon as there are no more requests ahead of it?
- A. 314
- B. 299
- C. 331
- D. 236
Correct answer: B. 299
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 299 cylinders, versus 331 for full SCAN.
More Operating Systems questions
- A disk has cylinders 0–199 and the head is at cylinder 76. Pending requests: 45, 130, 12, 180, 90, 150, 60, 170. What is the total head…
- 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…
- 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…
- A disk has cylinders 0–199 and the head is at cylinder 50. Pending requests: 55, 58, 39, 18, 90, 160, 150, 38, 184. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 60. Pending requests: 34, 197, 8, 120, 76, 160, 44, 105. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 60, moving towards cylinder 199. Pending requests: 34, 197, 8, 120, 76, 160, 44…