A CPU frequently accesses the same instructions and nearby memory locations. Which principle explains why cache memory can improve performance?

Options

  • A. Principle of locality
  • B. Principle of fragmentation
  • C. Principle of deadlock
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. Principle of locality

Detailed Explanation

Correct Answer: Principle of locality.

Explanation: Temporal locality means recently accessed data or instructions are likely to be accessed again. Spatial locality means nearby memory locations are likely to be accessed soon. Cache memory exploits these patterns to reduce average memory access time.