What is locality of reference?

This question is related to Cisco Interview

Showing Answers 1 - 6 of 6 Answers

vijay

  • Dec 14th, 2006
 

Definition of: locality of reference Also known as "locality in space" and "spatial locality," it refers to the fact that most instructions in a program are in routines that are executed over and over, and that these routines are in a reasonably confined area. It also refers to data fields in close proximity to each other.This is the principle behind memory and disk caches, in which data or instructions are placed in higher-speed memory and get read many times before the memory is overwritten by another set. See cache.

  Was this answer useful?  Yes

rajeev kumar

  • Feb 7th, 2007
 

locality of reference means refering a particular area of memory while allocating variables.Whenever we allocate variables they are stored in a particular area this phenomenon is called locality of reference.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions