edited by
1,204 views
2 votes
2 votes

A processor refers to the cache memory 1000 times. Out of which 150 references are resulting in misses due to conflicts, 100 of them are due to capacity limitations and 100 of them are due to compulsory page faults. Calculate the hit ratio for direct mapping and associative mapping.

edited by

1 Answer

0 votes
0 votes
In direct mapping capacity limitation is not there but it is there in associative mapping n conflict and compulsary page fault is there in both

so hit ratio in DM=(1000-250)/1000=0.75

in AM hit ratio=(1000-200)/1000=0.80

Related questions

4 votes
4 votes
3 answers
1
Parshu gate asked Nov 10, 2017
1,234 views
Consider an array A[200] and each element occupies 8-words. A 64-word cache is used and divided into 16-word blocks. What is the hit ratio for the following code segment:...
2 votes
2 votes
2 answers
2
rahuldb asked Nov 17, 2016
3,322 views
What is the hit ratio of a cache memory.If cache memory access time is 30ns,main memory access time is 150ns and avg access time is 42ns.
8 votes
8 votes
4 answers
3