Back to the 2024 paper

Module 4: Memory Organization

20242m

Which cache replacement algorithm removes the least recently used block.
(i) FIFO
(ii) LRU
(iii) Random Replacement

Worked SolutionAI Assisted

Answer: (ii) LRU

Explanation:

  • LRU (Least Recently Used): Evicts block that has not been referenced for longest time - exploits temporal locality; needs timestamp/counter/stack.
  • FIFO: Evicts oldest inserted block regardless of recent use.
  • Random Replacement: Random victim - simple hardware.

LRU gives best hit rate among three but most complex to implement.

Similar questions

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.