Week 2 - Memory Hierarchy Flashcards
Why can’t registers by used for long term storage?
Very expensive and volatile
Why do computers need a memory hierarchy?
Large storage devices are slow to access, storage devices that are quick to access are far too expensive to be used to store large amounts of data.
What is a memory hierarchy?
Having multiple different memory devices, where the device with the quickest read/write times is the smallest, and as devices get slower their capacity gets larger.
Locality of reference
The tendency of a processor to access the same set of memory locations repetitively over a short period of time.
Temporal locality
The reuse of specific data and/or resources within a relatively small time duration.
Spatial locality
The use of data elements within relatively close storage locations