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

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.