edited by
2,254 views
0 votes
0 votes
A : LRU replacement policy is not applicable to direct mapped caches
B : A unique memory page is associated with every cache page in direct mapped caches

Options:

1) Both True
2) Both False
3) A is True and B is false
4) B is True and A is false
edited by

1 Answer

0 votes
0 votes

option A ---- Both are False

1-For Direct mapped cache all the algorithms will be trivial because there is fixed block no. to which that address belong.

So, LRU is applicable in Direct Mapped Cache but it won't have any effect on hit/miss.So Not applicable is wrong word.

2-As memory Page = Cache page Data of one memory page will be part of only one Cache page .In Direct Mapped Cache Memory address itself contain the address of Cache page number which is unique in itself.

But one Cache Page belongs to more than one Memory Page.

Therefore the second statement is False.

If it would have been "A unique Cache Page is associated with every memory page in Direct Mapped Cache" Then it would have been true

 

edited by

Related questions

3 votes
3 votes
1 answer
1
ashish pal asked Dec 31, 2017
1,860 views
The statement " Direct mapped cache, may produce more misses if programs refers to memory words that occupy a same tag value." is true or false ?