CS FundamentalsHardGATE CS · Product Company SDE
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. 6
- B. 9
- C. 7
- D. 8
Correct answer: A. 6
Trace the frames: FIFO 5, LRU 6, OPT 5. LRU = 6 (every first reference counts as a fault; OPT ≤ LRU/FIFO always).
More Operating Systems questions
- 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 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…