in CO and Architecture edited by
785 views
0 votes
0 votes
Consider a 2 way set associative cache with 4 blocks. The memory block requests in the order.

4,6,3,8,5,6,0,15,6,17,20,15,0,8

If LRU is used for block replacement then memory set 17 will be in the cache block ____.

 

(PS: the given answer is 1)
in CO and Architecture edited by
785 views

2 Comments

they have given the answer for set number and asked for cache block number.

Answer is cache block number 4(or 3 if you start from 0) and set number 1(as there are two sets 0 and 1)
1
1

@Shaik Masthan @MiNiPanda what should be correct ans 4 or 3, or it depend upon the implementation?

0
0

1 Answer

0 votes
0 votes
iam getting ans as set no 1 , i think cant tell specifically in which block it will be in

Related questions