335 views
0 votes
0 votes

1 Answer

0 votes
0 votes
for L1:- 1/4*60*60=900 miss

because at every 4 elements in cache block 1 (MISS)

as when the program wants to print value searches value in the cache memory as it does not find(MISS) so it takes consecutive 16 byte means 4 elements and put inside block so for other three (HIT) now again same others.

for L2: -program prints from last so we can not put 16 bytes at a time so MISS for all elements 60*60=3600 (MISS)

Related questions

1 votes
1 votes
1 answer
3
learner_geek asked Jul 26, 2017
811 views
Find hit and miss ratio for both the questions?