Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define spatial locality.
It relates to how data is organized in the cache.
What is temporal locality?
Think of a loop where the same data is read multiple times.
What does spatial locality imply in caching?
Consider how data is organized in arrays.
True or False: In a direct-mapped cache, multiple addresses can map to the same line, leading to cache misses.
Think about how data locations are organized.
You are tasked with designing a cache for a system that experiences rapid data access in bursts followed by periods of inactivity. Which replacement policy would you choose, and why?
Consider which policy focuses on usage history.
Given the following access pattern for memory addresses: 1, 2, 1, 3, 4, 2, 5, if implemented in a small 4-line direct-mapped cache, which addresses would likely cause conflicts?
Calculate the cache lines for each address based on modulo operation.
5 more questions in this section. Enroll free to practise them all.
Enroll free