A loop reads the same lookup entry at address 52 on consecutive iterations. Which locality does this illustrate?
In the typical hierarchy shown, which order has increasing access time, from shortest to longest?
Accessing neighbouring memory locations one after another shows spatial locality.
Circle one: True False
Consecutive one-byte elements occupy addresses 0,1,2,3. A loop reads each once in that order. Which locality does the address pattern illustrate?
A row-major two-row, four-column array uses consecutive one-byte elements at addresses 0 through 7. Column-first reads 0,4,1,5,2,6,3,7. Why can this use less of each cache line before eviction on larger arrays?
In the lesson's typical hierarchy, a cache has shorter access time than main memory. Which statement about their total capacity is usually true?
An empty cache holds one aligned 4-byte line. Elements are 1 byte. A reads addresses 16 through 23 in order. B reads 16,20,17,21,18,22,19,23. Both read every element once. How many misses does each have?
A column-major three-row, two-column array stores column 0 at addresses 100,101,102 and column 1 at 103,104,105. A student chooses row-first because rows look shorter. Which correction is sound?