The Gateway to Computer Science Excellence
0 votes
66 views

answer is 1.. but I’m getting more than 1

in CO and Architecture by Active (5.1k points) | 66 views

1 Answer

+3 votes
Best answer
no of lines =8/2=4

0..... 0mod4=0(compulsory miss)

11......11mod 4=3(compulsory miss)

4......4mod4=0(compulsory miss)

14......14 mod 4 =2(compulsory miss)

9.......9mod4=1(compulsory miss)

1......1 mod 4=1(compulsory miss)

8.......8 mod 4=0(compulsory miss)

0.....0mod4=0(conflict miss)

 

so conflict miss=1

 

shortcut: only block no 0 is referred again so it can cause conflict miss other are not responsible for conflict miss.. block no 0 is mapped to line 0 of cache which is already occupied by block 8 so it results in conflict miss.

 

compulsory miss: when you very first time access any block surely it is not present in cache this miss is known as compulsory miss

 

conflict miss: when you are accessing  same block again but it is not present in cache because that space has been occupied by some othe block then it is conflict miss.

 

capacity miss: when miss occur due to cache is full(associative cache) or set of cache is full(in case of set associative cache) then it is capacity miss
by Active (2.3k points)
selected by
0
thank u :)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,563 answers
195,732 comments
101,646 users