CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider a small two-way set-associative cache memory, consisting of four blocks. For choosing the block to be replaced, use the least recently used (LRU) scheme. The number of cache misses for the following sequence of block addresses is
8,12,0,12,8

A
2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
4
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 4
Sequence 8,12,0,12,8

Apply the LRU as follows

Page Frame



Total number of miss=4

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Vellore Revolt
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon