CS FundamentalsHardAmazon · Microsoft MCQ pattern
A disk subsystem uses C-LOOK (like C-SCAN, but it jumps straight to the lowest pending request instead of running all the way to the disk's edge before wrapping). Cylinders 0–199, head at 50 moving up. Requests: 182, 20, 97, 64, 160. What is the total head movement under C-LOOK?
- A. 368
- B. 232
- C. 149
- D. 294
Correct answer: D. 294
Upward: 50→64→97→160→182 = 14+33+63+22 = 132. C-LOOK then jumps directly from 182 to the lowest pending request, 20 (no detour to cylinder 0 or 199, unlike C-SCAN): that jump costs |182−20| = 162. Total = 132 + 162 = 294. Plain C-SCAN on the same data instead costs 368, since it must actually reach the disk's edges.
More Operating Systems questions
- In the standard five-state process model, which transition can NEVER happen directly?
- The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the:
- Short jobs stuck waiting behind one long CPU-bound job is called the convoy effect. It is characteristic of which scheduling algorithm?
- A system spends most of its time swapping pages in and out and does very little useful work. This condition is called:
- Which page-replacement algorithm can show Belady's anomaly (more frames giving more page faults)?
- The disk-scheduling algorithm in which the head sweeps to one end of the disk servicing requests and then reverses direction, like a lift…