Back to the 2025 paper

Module 5: Memory Management

20257m

Consider the main memory with the capacity of 4 page frames. Assume that the pages of a process are referenced in the order as given below:
1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2

Which of FIFO or LRU would be better in this case as a page replacement policy? Why?

Worked SolutionAI Assisted

4 frames ref 1,3,4,4,3,2,1,7,5,6,4,2,1,2

Sim FIFO faults ~10, LRU faults ~8 → LRU better due to locality keeping recent pages (3,4). FIFO evicts early 1 quickly leading to extra fault when 1 reappears. LRU approximates working set.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.