When referencing data items, the closer the instruction is to the processor the faster it can be accessed. The principle of locality is broken down into two types, temporal locality and spatial locality. Temporal locality can be explained as something that has been referenced has a high probability of being quickly referenced again (Patterson & Hennessy, 2014). While spatial locality is when instruction is referenced, instructions with addresses close to it will referenced as well (Patterson & Hennessy, 2014). When incorporating these two concepts with referencing data, it can be explained using an array. Chi, Ho, and Lau (2012) explain that “array references have relatively strong spatial locality”. When indexing through the elements of an array is spatial locality. Elements in array hold memory addresses close to each other. Temporal locality would be constantly referencing the same element in an array. The memory hierarchy can be broken into layers of different types of m
This blog was created as a way to document my journey into the world of technology and cybersecurity.