How is an LRU cache implemented in a CPU?

后端 未结 2 1123
迷失自我
迷失自我 2021-02-06 09:45

I\'m studying up for an interview and want to refresh my memory on caching. If a CPU has a cache with an LRU replacement policy, how is that actually implemented on the chip?

2条回答
  •  [愿得一人]
    2021-02-06 10:02

    There is a good slide-deck Page replacement algorithms that talks about various page replacement schemes. It also explains the LRU implementation using mxm matrix really well.

提交回复
热议问题