3 3 votes A system uses $FIFO$ policy for page replacement.It has $4$ page frames with no pages loaded, to begin with.The system first accesses $50$ distinct pages in some order and then accesses the same $50$ pages in reverse order.How many page faults will occur? $96$ $100$ $97$ $92$ Operating System isrodec2017 operating-system page-replacement fifo algorithm-challenges + – gatecse 1.7k views answer comment Share Follow Print See 1 comment 1 1 comment reply Anu007 commented Dec 20, 2017 reply Follow flag 50 + 46 = 96 1 1 replyShare Please log in or register to add a comment.
2 2 votes 50 distinct pages(forward) - 50 page replacements reverse order- first 4 pages will be already loaded- then remaining 46 page replacements total 96 Manoja Rajalakshmi A answered Dec 21, 2017 Manoja Rajalakshmi A comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Access to 50 pages will cause 50-page faults. When these pages are accessed in reverse order, the first four accesses will not cause the page fault. All other access to pages will cause page faults. So total number of page faults will be 50 + (50-4) = 50 + 46 = 96. pankaj_vir answered Mar 11, 2018 pankaj_vir comment Share Follow 0 reply Please log in or register to add a comment.