Because it is impossible to predict the future with perfect accuracy, the cache must guess what data will be needed based on the past pattern of memory accesses
Anonymous Quiz
95%
T
5%
F
The cache exploits …. to achieve a low miss rate
Anonymous Quiz
6%
temporal locality
4%
spatial locality
88%
Both of them
2%
Neither of them
means that the processor is likely to access a piece of data again soon if it has accessed that data recently
Anonymous Quiz
87%
temporal locality
13%
spatial locality
when the processor loads or stores data that is in the cache, the data is copied from main memory into the cache
Anonymous Quiz
66%
T
34%
F
means that, when the processor accesses a piece of data, it is also likely to access data in nearby memory locations
Anonymous Quiz
10%
temporal locality
90%
spatial locality
when the cache fetches one word from memory, it may also fetch several adjacent words
Anonymous Quiz
25%
temporal locality
75%
spatial locality
when the processor loads or stores data that is not in the cache, the data is copied from main memory into the cache
Anonymous Quiz
78%
temporal locality
22%
spatial locality
The address of the data in the cache is the same as the main memory address
Anonymous Quiz
29%
T
71%
F
the CPU uses a specific mapping scheme that converts the main memory address into a cache location
Anonymous Quiz
95%
T
5%
F
The mapping scheme determines where the data is placed when it is originally copied into cache and provides a method for the CPU to find data when searching cache
Anonymous Quiz
98%
T
2%
F
Number of blocks = 2^n ---- here n represents
Anonymous Quiz
9%
Number of blocks
34%
block offset
51%
block index
7%
block size
Number of lines = 2^n ---- here n represents
Anonymous Quiz
5%
cache size
68%
cache index
24%
cache lines
3%
cache offset
main memory size, cache memory size, block size are essentially measured by
Anonymous Quiz
33%
bits
64%
bytes
4%
Words