CS FundamentalsHardGATE
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, 195. What is the total head movement under SCAN (elevator), which travels to the end of the disk before reversing?
- A. 305
- B. 285
- C. 255
- D. 315
Correct answer: B. 285
SCAN services every request in the direction of travel, continues to cylinder 0, then reverses: total movement 285 cylinders. LOOK would instead turn around right after the last request in that direction, giving only 255.
More Operating Systems questions
- 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…
- 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…
- A process uses paging with a page size of 1024 bytes (1 KB). Virtual address 136656 (decimal, byte address) maps to page number 133 with…
- A process uses paging with a page size of 2048 bytes (2 KB). Virtual address 83545 (decimal, byte address) maps to page number 40 with…