Question: Question 2 ( b ) Assume a set - associative mapping with 4 blocks per set. One implementation of the LRU algorithm is to use
Question b Assume a setassociative mapping with blocks per set. One implementation of the LRU algorithm is to use a counter associated with each block in the set. Assume the set is empty and assign an initial value of for each counter.
If the following events occurred in sequence
Read miss
Read miss
Read miss
Read hit in the first cache block
Read hit in the second cache block
Read miss
Read miss
Read hit in the first cache block
Read hit in the first cache block
Read miss
Draw a diagram for the set after each event to show how the values of the four counters and the contents of the cache are changed with each event of the above.
For example, the given diagram shows a set with two occupied blocks and two empty blocks. The diagram also shows the contents of the counters associated with each block.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
