CS FundamentalsVery hardIBM · Deloitte pattern
Reference string: 8, 2, 9, 2, 4, 8, 9, 4, 2, 8, 4, 9, 2. With 4 frames, initially empty, how many page faults does LRU replacement cause?
- A. 3
- B. 6
- C. 4
- D. 5
Correct answer: C. 4
Walking the string with 4 frames under LRU (evict the least recently used page) gives 4 faults. FIFO on the same string gives 4, and Optimal gives 4 as the guaranteed minimum.
More Operating Systems questions
- Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- Reference string: 6, 3, 1, 0, 3, 6, 1, 0, 6, 3, 1, 6. With 3 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 6, 3, 1, 0, 3, 6, 1, 0, 6, 3, 1, 6. With 4 frames, initially empty, how many page faults does LRU replacement cause?
- Reference string: 5, 1, 2, 6, 1, 5, 2, 6, 5, 1, 2, 6, 5. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 5, 0, 3, 8, 1, 6, 2, 9, 4, 7, 0, 3, 8. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…