CS FundamentalsHardGATE CS · Product Company SDE
A disk (tracks 0–199) has the head at 84 and pending requests [131, 79, 155, 177, 81, 144, 121, 28]. What is the total head movement under SCAN (head moving toward track 0 first, going all the way to 0, then reversing)?
- A. 278
- B. 261
- C. 209
- D. 255
Correct answer: B. 261
FCFS 472; SSTF 252; SCAN 261 (84→0 then up to 177). Requested policy → 261.
More Operating Systems questions
- A system has 36-bit virtual addresses, 8 KB pages and 4-byte page-table entries with a single-level page table. What is the size of the…
- A TLB lookup takes 20 ns, a memory access 200 ns, and the TLB hit ratio is 80%. With a single-level page table, what is the effective…
- A TLB lookup takes 20 ns, a memory access 120 ns, and the TLB hit ratio is 98%. With a single-level page table, what is the effective…
- Processes (arrival, burst): P1(0, 9), P2(5, 6), P3(1, 9), P4(6, 2). Using Round Robin with quantum 4 (a newly arrived process is queued…
- A process has 3 frames, initially empty, and references pages 6 4 3 6 3 3 6 4 1 5 5 3. How many page faults occur under LRU replacement?
- A process has 4 frames, initially empty, and references pages 3 4 2 6 1 1 5 2 1 4 6 4 6 6. How many page faults occur under LRU replacement?