retagged by
306 views
1 votes
1 votes

Assume a sequence of memory accesses is made that have a high degree of temporal locality, which one of these cache would be likely to have the best performance?

  • A 4-way set associative cache with 2-byte blocks

  • A 2-way set associative cache with 4-byte blocks

  • A direct mapped cache with 4-byte blocks

  • A direct mapped cache with 8-byte blocks

retagged by

1 Answer

Best answer
3 votes
3 votes

To have high temporal locality the data should be retained longer. Temporal locality means that a data accessed has a high probablity of being accessed again. So to maximize temporal locality we have to ensure that the data is not replaced with another block. And comparing the given cache configurations I think 4-way associative cache with 2 byte blocks is the best choice.

selected by

Related questions

0 votes
0 votes
1 answer
1
Shoto asked Jan 14, 2022
431 views
Can anyone please solve this?
0 votes
0 votes
2 answers
2
rsansiya111 asked Dec 23, 2021
399 views
In designing a computer’s cache system,
2 votes
2 votes
1 answer
4