retagged by
1,262 views
0 votes
0 votes

Hardware cache memories exploit spatial locality of reference

  1. by remembering which pieces of data have been accessed recently
  2. when data items are re-accessed frequently
  3. by remembering which cache blocks (lines) have been written to
  4. only if cache block (line) size is greater than 1 byte
retagged by

3 Answers

Best answer
5 votes
5 votes
Answer is D.

Spatial locality refers to a data near by a recently accessed one being accesses in near future. So, to make use of it, when a data is accessed, a block of data which incudes the accessed part is taken (called cache line) and placed in cache. So, if this cache line size is 1 byte, that virtually rules out any chance of exploiting spatial locality in cache.

A is not correct. There is no "remembering" mechanism in cache though this might be used for cache line replacement like in LRU.

B is for temporal locality.

C is used for write-back cache.
selected by
2 votes
2 votes

Spatial Locality says that whenever we are looking for any element the chance's  are that , that particular element will be present in the close proximity around the one which we has previously referred .  

0 votes
0 votes

Ans A) by remembering which pieces of data have been accessed recently

If a memory is referenced , Spatial locality access the nearby memory location in near future

B) LOR is about the accessing the memory location , not about same data

C)According to this option, Same memory location is accessed in near future. So, it is temporal locality of reference

D)No such constraint given for LOR

Answer:

Related questions

0 votes
0 votes
2 answers
3
go_editor asked Jun 8, 2016
472 views
Which of the following statement(s) is(are) true?If $n$ is odd prime number then $2^{n-1} \text{ mod } n =1$If $2^{n-1} \text{ mod } n =1$ for a number $n$ then $n$ is pr...
2 votes
2 votes
1 answer
4
go_editor asked Jun 8, 2016
346 views
Write the truth table for the connective: "If A then B"