in CO and Architecture
478 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?
in CO and Architecture
by
478 views

1 comment

You can but what's the point of implementing it w/o any gain?
0
0

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

1 vote
1 vote
1 answer
2