CS FundamentalsHardGATE CS · Product Company SDE
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?
- A. 4
- B. 10
- C. 11
- D. 8
Correct answer: D. 8
Trace the frames: FIFO 7, LRU 8, OPT 7. LRU = 8 (every first reference counts as a fault; OPT ≤ LRU/FIFO always).
More Operating Systems questions
- A disk (tracks 0–199) has the head at 91 and pending requests [70, 142, 159, 58, 140, 42]. What is the total head movement under FCFS?
- A system has 40-bit virtual addresses, 4 KB pages and 4-byte page-table entries with a single-level page table. What is the size of the…
- A TLB lookup takes 10 ns, a memory access 200 ns, and the TLB hit ratio is 98%. With a single-level page table, what is the effective…
- A process has 4 frames, initially empty, and references pages 2 6 2 4 1 2 2 1 4 1 2 4 3 1 2. How many page faults occur under OPT…
- A disk (tracks 0–199) has the head at 111 and pending requests [34, 176, 127, 129, 120, 171, 96, 8]. What is the total head movement under…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3). They…