Define locality of reference? What are its types?
During the course of implementation of a program memory references by the processor for both the instruction and the data tends to cluster. There are two types,
i. Spatial Locality
ii. Temporal Locality