Principle of locality is used in ______.

2020

Principle of locality is used in ______.

  1. A.

    Registers

  2. B.

    DMA

  3. C.

    Cache Memory

  4. 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:

  1. Temporal Locality: If a memory location is accessed once, it is likely to be accessed again soon (e.g., loops).

  2. Spatial Locality: If a memory location is accessed, nearby memory locations are likely to be accessed soon (e.g., arrays).

Explore the full course: Niacl Ao It Specialist