edited by
1,057 views
0 votes
0 votes

I have got 

- 5 compulsory misses for first 5 ref.

- 3 conflict misses for last 3 ref.

edited by

1 Answer

3 votes
3 votes
use the formula: k mod n to locate the block no.
all 8 are misses.
now,there are 4 conflict misses: 3 in block no.0 and 1 in  block no.1
   in block no. 0:  4 with 0;8 with 4;0 with 8
   in block no. 1:  1 with 9
there are 7 compulsory misses(all references except the last 0 which is being referenced for the second time). note that compulsory misses are those which are referenced for the first time that's why these are also known as FIRST REFERNCE or COLD-START misses also.
thus, answer = 8+7+4 = 19.
edited by

Related questions

1 votes
1 votes
0 answers
1
0 votes
0 votes
0 answers
3
bts1jimin asked Jan 17, 2019
454 views
here it is given byte addressable. So these locations refer to words or byte location. What are set, block fields here : number of words or number of bytes for these loca...