479 views
0 votes
0 votes
Can we apply LRU policy to direct mapped cache.

according to me it doesn't make any sense as eventually it will be like FIFO only as unique memory addresses are assigned to each cache line.

But my doubt / confusion is can we implement LRU on direct mapped caches?

1 Answer

0 votes
0 votes
in Set  set associative We apply LRU . yes

and We know When Associative Is  “ n “ then It will Work As a Fully  Associative and When associative Is “ 1 “ then It will Work As a Direct mapping  i think You agree with me…..

 

Then we Also Say that Direct mapping is Also a kind Of  Set associative Mapping And when LRU is Applicable To  Set associative , then It is also applicable in Direct mapping .

Related questions

2 votes
2 votes
0 answers
1
AnilGoudar asked Oct 18, 2017
450 views
The direct mapped cache uses M main memory blocks and N cache blocks, for a given Physical Address it resulted T tag bits and placed in P cache block. Which main memory w...
1 votes
1 votes
1 answer
2
0 votes
0 votes
0 answers
4
Ashwani Yadav asked Dec 20, 2018
615 views
what’s the answer here ...unable to understand their solution.and also shouldn’t be the reason like this For R to be true: “ A unique cache page is associated with ...