retagged by
558 views
1 1 vote

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

1 Answer

Best answer
3 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
Position:
Show:

Related questions

0 0 votes
1 1 answer
954
954 views
Shoto asked Jan 14, 2022
954 views
Can anyone please solve this?
0 0 votes
2 2 answers
925
925 views
rsansiya111 asked Dec 23, 2021
925 views
In designing a computer’s cache system,
0 0 votes
1 1 answer
472
472 views
rsansiya111 asked Dec 15, 2021
472 views
The following programme is stored in memory unit of the basic computer. What is the content of the accumulator after the execution of programme? (All locations numbers li...
2 2 votes
1 1 answer
1.6k
1.6k views
Lakshman Bhaiya asked Dec 23, 2018
1,618 views
A PC-related mode branch instruction is $8$Byte long. The address of the instruction,in decimal, is $548321.$Find the branch target address if the signed displacement in ...