www.knowledgegate.in
FIFO Policy
•The block which have entered first in the memory will be replaced first.
•This can lead to a problem known as “Belady’s Anomaly”, it states that if we increase the
number of lines in cache memory the cache miss will increase.
Example:Let the blocks be in the sequence: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 and
the cache memory has 4 lines.
7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1