How many page faults are there in the following accesses of pages in case of FIFO mechanism where page frame size is 8? $$11,21,23,53,8,7,10,3,3,38,3,37,7$$
Soln: This question appeared in one of my the entrance tests for a company and I am pretty sure I got it right but there was no option matching what I had thought. Am I going wrong somewhere?
My approach: first 8 will fail next when we replace the new ones we shall replace from the beginning since FIFO mechanism, so basically we first search for the newly found page in the frame and if not present we pop off the first one from the frame and add new ones at the back. Is this right?