Assuming a replacement policy of FIFO, and a cache of size 3 pages, figure out whether each of the following page references hit or miss in the page cache.
Solving... Access: 2 MISS FirstIn -> [2] <- Lastin Replaced:- [Hits:0 Misses:1] Access: 0 MISS FirstIn -> [2, 0] <- Lastin Replaced:- [Hits:0 Misses:2] Access: 4 MISS FirstIn -> [2, 0, 4] <- Lastin Replaced:- [Hits:0 Misses:3] Access: 1 MISS FirstIn -> [0, 4, 1] <- Lastin Replaced:2 [Hits:0 Misses:4] Access: 2 MISS FirstIn -> [4, 1, 2] <- Lastin Replaced:0 [Hits:0 Misses:5] Access: 1 HIT FirstIn -> [4, 1, 2] <- Lastin Replaced:- [Hits:1 Misses:5] Access: 3 MISS FirstIn -> [1, 2, 3] <- Lastin Replaced:4 [Hits:1 Misses:6] Access: 0 MISS FirstIn -> [2, 3, 0] <- Lastin Replaced:1 [Hits:1 Misses:7] Access: 0 HIT FirstIn -> [2, 3, 0] <- Lastin Replaced:- [Hits:2 Misses:7] Access: 2 HIT FirstIn -> [2, 3, 0] <- Lastin Replaced:- [Hits:3 Misses:7] Access: 3 HIT FirstIn -> [2, 3, 0] <- Lastin Replaced:- [Hits:4 Misses:7] Access: 1 MISS FirstIn -> [3, 0, 1] <- Lastin Replaced:2 [Hits:4 Misses:8] Access: 3 HIT FirstIn -> [3, 0, 1] <- Lastin Replaced:- [Hits:5 Misses:8] Access: 2 MISS FirstIn -> [0, 1, 2] <- Lastin Replaced:3 [Hits:5 Misses:9] Access: 5 MISS FirstIn -> [1, 2, 5] <- Lastin Replaced:0 [Hits:5 Misses:10] FINALSTATS hits 5 misses 10 hitrate 33.33