1,207 views
0 0 votes
In LRU policy for cache replacement. the least recently used block is replaced. So, what happens when all the slots are empty at beginning?

Is LRU or MRU easier to implement? Why?

1 Answer

0 0 votes
No need for replacement initially as they are already empty. we see replacement when the memory is full. And the second one i think both are of same cost in implementation. just a guess.
Position:
Show:

Related questions

4 4 votes
1 answers 1 answer
830
830 views
Sona Barman asked Jan 18, 2018
830 views
Self doubt:What is the rule or keyb point we should keep in mind while solving problems on LRU page replacement algorithm? Please explain with examples.
1 1 vote
0 0 answers
556
556 views
Reetu Chaudhary asked May 6, 2024
556 views
For a certain page trace starting with no page in the memory, a demand-paged memory system operated under the LRU replacement policy results in 9 and 11 page faults when ...
3 3 votes
2 2 answers
138
138 views
GO Classes asked Aug 13
138 views
A demand-paging system has $4$ physical frames $P1,P2,P3,P4$.The page-reference sequence is:$A,\ B,\ C,\ D,\ E,\ B,\ A,\ D,\ B,\ C$Initially, all frames are empty.Two rep...
2 2 votes
2 2 answers
155
155 views
GO Classes asked Aug 13
155 views
A virtual-memory system uses the LRU page-replacement algorithm.There are four physical page frames at hexadecimal addresses:$4000,\ 5000,\ 6000,\ 7000$The page-reference...