CS FundamentalsVery hardProduct-company MCQ pattern
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, 105. What is the total head movement under SCAN (elevator), which travels to the end of the disk before reversing?
- A. 330
- B. 326
- C. 350
- D. 316
Correct answer: A. 330
SCAN services every request in the direction of travel, continues to cylinder 199, then reverses: total movement 330 cylinders. LOOK would instead turn around right after the last request in that direction, giving only 326.
More Operating Systems questions
- 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…
- A disk has cylinders 0–199 and the head is at cylinder 90. Pending requests: 15, 45, 75, 105, 135, 165, 30, 195. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 90, moving towards cylinder 0. Pending requests: 15, 45, 75, 105, 135, 165, 30…
- A disk has cylinders 0–199 and the head is at cylinder 90, moving towards cylinder 0. Pending requests: 15, 45, 75, 105, 135, 165, 30…
- A disk has cylinders 0–199 and the head is at cylinder 70. Pending requests: 12, 78, 145, 33, 167, 92, 56, 188. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 70, moving towards cylinder 199. Pending requests: 12, 78, 145, 33, 167, 92, 56…