recategorized by
625 views
1 votes
1 votes

recategorized by

1 Answer

0 votes
0 votes

Temporal locality : If at a particular time, a memory location is referenced then chances are that it will be soon accessed again. Since most of the program is carried out in loops, same instructions and data are reused again and again.

In this case, it is common to make a copy of the most frequently used memory references and store it in a high speed physical storage (caches).

Spatial locality : If at a particular time, a memory location is referenced, then chances are that the nearby locations will also be accessed in due course of time.

Hence, we can say that temporal locality is a special case of spatial locality.

Here S1 speaks about spatial locality, S2 is true and S3 is false

So answer is choice B