Memory Systems
Principle of locality
- program does not access all of its code all the time with equal probability
temporal locality
- it an item is used it will most probably be used again soon.
spatial locality
- if an item is used then other items nearby in memory will be used again soon.