in Operating System
386 views
2 votes
2 votes

in Operating System
386 views

1 Answer

3 votes
3 votes
Best answer

Cache size = 8byte

Block size = 2byte

#f lines = Cache size/Block size

=> 8/2= 4 lines

#f sets (S)= #f lines / associativity

=> 4/2 = 2 sets

Using LRU :

mapping technique in set associativity => k mod S = i  {k=memory block no.}

only memory block "2" will hit

total no of hit =1

selected by

3 Comments


@Akash Just confirming this is kind of structure right?
Now,
Could you tell me the further procedure which will be hit?
 

 

0
0

@ saxena0612

check now

1
1
Got it !
0
0