More than one word is put in one cache block to
2001
More than one word is put in one cache block to
- A.
exploit the temporal locality of reference in a program
- B.
exploit the spatial locality of reference in a program
- C.
reduce the miss penalty
- D.
none of the above
Attempted by 83 students.
Show answer & explanation
Correct answer: B
Spatial locality means that if a program accesses one memory location, it is likely to access nearby memory locations soon.
When more than one word is placed in a cache block, a cache miss brings the requested word along with adjacent words into the cache.
If the program next accesses one of those nearby words, it becomes a cache hit.
This is different from temporal locality, which refers to repeated access to the same location.
Therefore, more than one word is put in one cache block to exploit spatial locality of reference. Hence, option B is correct.