in CO and Architecture edited by
526 views
0 votes
0 votes

Consider an array A[100] and each element occupies 4 word a 32-word cache is used and divided into an 8-word block

  1. What is the hit ratio for

              for(i=0;i<100;i++)

                        x=A[i]+100;

  1. No of time block 0 is modified.
in CO and Architecture edited by
526 views

4 Comments

Yes I considered that as well ceil(100/8) ==>13 not sure :) .

@pream sagar  can you provide the answer

0
0
0,8,16,24,32,40,48,56,64,72,80,88

THESE ARE indexes which are replaced why we count A[96] also so i think only 12 time block 0 is modified
0
0
this problem was seen in made easy notes they give 13
0
0

Please log in or register to answer this question.

Related questions

1 vote
1 vote
1 answer
3
Anmol pratap singh asked in DS Jul 8, 2023
590 views
Anmol pratap singh asked in DS Jul 8, 2023
590 views