A main memory can retain up to 4 pages. Which page will be the first one to get a page fault if LRU algorithm is used on the following pages that is in order?
1,2,3,1,2,4,1,2,3
This is a test question which I thought there is no answer to. The main memory can have 4 pages retained, and since there are pages 1,2,3,4, there shouldn't be a page fault occurring.
The answer is 4th page but I don't understand why.