question about implements LRU policy #2316
Answered
by
lzhangzz
xiaoxiangshusheng
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
lzhangzz
Aug 19, 2024
Replies: 1 comment
-
Even though timestamp is cumulative, Notice that the blocks of a sequence is touched in reversed order. This enforce the blocks in the back of a sequence is evicted before blocks in the front of the sequence. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiaoxiangshusheng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even though timestamp is cumulative,
blocks_[i].timestamp < blocks_[j].timestamp
still impliesi
is used less recently thanj
.Notice that the blocks of a sequence is touched in reversed order. This enforce the blocks in the back of a sequence is evicted before blocks in the front of the sequence.