CS FundamentalsVery hardGATE CS
Disk with 100 cylinders (0–99); head at 50 moving up. Requests arrive in two batches: first 30, 70, 90; when the head reaches 70, new requests 60 and 95 arrive. Under SCAN (to the end), what is the total head movement until all five are served?
- A. 110
- B. 118
- C. 98
- D. 149
Correct answer: B. 118
50 → 70 (20). With 95 now ahead and 60 behind, SCAN keeps going up through 90 and 95 to the last cylinder 99 (29 more), then reverses down past 60 to 30 (69). Total 20 + 29 + 69 = 118. LOOK would turn at 95 and total 110.
More Operating Systems questions
- A system has 3 identical printers. Processes P1, P2, P3 hold 1 printer each and each needs exactly 2 to finish; requests are made one at a…
- A program alternately computes for 20 ms and does disk I/O for 80 ms. With 4 such independent programs and the 1 − pⁿ model, what CPU…
- In a system with paging, a process's logical address space is 64 pages of 1 KB and physical memory is 32 frames. How many bits are in the…
- An 8 MB file uses linked indexed allocation: each 4 KB index block holds 1024 four-byte pointers, of which the last is reserved as the…
- Processes (arrival, burst) are P1 (0, 8), P2 (1, 4), P3 (2, 9), P4 (3, 5) and P5 (6, 2). What is the average waiting time under preemptive…
- Round Robin with quantum 2 runs A (arrival 0, burst 5), B (1, 3), C (2, 6) and D (4, 2). A newly arrived process joins the ready queue…