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

More than one word are put in one cache block to

A
exploit the temporal locality of reference in a program
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
exploit the spatial locality of reference in a program
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
reduce the miss penalty
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B exploit the spatial locality of reference in a program
There are two types of locality of reference:

1. Temporal: A recently executed instruction is likely to be executed again very soon.

2. Spatial: Instructions in close proximity to a recently executed instruction are also likely to be executed soon.

The spatial aspect suggests that instead of fetching just one item from the main memory to the cache, it is useful to fetch several items that reside at adjacent address as well.

Therefore more than one work are put in one cache block to exploit the spatial locality of reference in the program.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Importance of Planning
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon