The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+11 votes
1.6k views

The principle of locality justifies the use of:

  1. Interrupts
  2. DMA
  3. Polling
  4. Cache Memory
asked in CO & Architecture by Veteran (59.5k points)
edited by | 1.6k views

1 Answer

+20 votes
Best answer

Answer is (D).

Locality of reference is actually the frequent accessing of any storage location or some value. We can say in simple language that whatever things are used more frequently, they are stored in the locality of reference. So we have cache memory for the purpose.

answered by Boss (19.7k points)
edited by
0
What is exact difference between tempral and special locality
0
+1
$\text{Locality of Reference}$ means If you are accessing, say memory location $x$ then it is $more \ likely$ that you will access memory location $x$ again or nearby locations of $x, ..x-3,x-2,x-1 ,x+1,x+2$....again in the near future. Former one is called $\color{Blue}{temporal \ locality}$ while later one is called $\color{blue}{spatial \ locality}$.
This the reason that when we have a cache miss we transfer the whole block containing the desired word in the cache rather than just the desired word.


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

39,750 questions
46,765 answers
140,657 comments
58,517 users