Question: This chapter described the least recently used (LRU) replacement policy for multiway associative caches. Other, less common, replacement policies include first-in-first-out (FIFO) and random policies.
This chapter described the least recently used (LRU) replacement policy for multiway associative caches. Other, less common, replacement policies include first-in-first-out (FIFO) and random policies. FIFO replacement evicts the block that has been there the longest, regardless of how recently it was accessed. Random replacement randomly picks a block to evict.
(a) Discuss the advantages and disadvantages of each of these replacement policies.
(b) Describe a data access pattern for which FIFO would perform better than LRU.
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
a FIFO FIFO replacement approximates LRU replacement by discarding data that has been in the cache l... View full answer
Get step-by-step solutions from verified subject matter experts
