Principle of locality is used in ______.
2020
Principle of locality is used in ______.
- A.
Registers
- B.
DMA
- C.
Cache Memory
- D.
Interrupt
Attempted by 380 students.
Show answer & explanation
Correct answer: C
The Principle of Locality (or Locality of Reference) is the tendency of a processor to access the same set of memory locations repetitively over a short period of time. This principle is the fundamental reason why Cache Memory works effectively.
There are two main types:
Temporal Locality: If a memory location is accessed once, it is likely to be accessed again soon (e.g., loops).
Spatial Locality: If a memory location is accessed, nearby memory locations are likely to be accessed soon (e.g., arrays).