retagged by
296 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


Deprecated: Implicit conversion from float-string "1640244398.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1640244398.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1640244398.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1640244398.846" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1639552631.318" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1639552631.318" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1639552631.318" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1639552631.318" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1545562241.255" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1545562241.255" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1545562241.255" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1545562241.255" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1545554751.893" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1545554751.893" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1545554751.893" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1545554751.893" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
397
views
2 answers
0 votes
rsansiya111 asked Dec 23, 2021
397 views
In designing a computer’s cache system,
233
views
1 answers
0 votes
rsansiya111 asked Dec 15, 2021
233 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...
873
views
1 answers
2 votes
Lakshman Bhaiya asked Dec 23, 2018
873 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 ...
1.2k
views
0 answers
1 votes
Lakshman Bhaiya asked Dec 23, 2018
1,174 views
A processor has $128$ distinct instructions. A $24-$bit instruction word has an opcode, register, and operand.The number of bits available for the operand field is $7.$Th...