3 3 votes Given reference to the following pages by a program 0,9,0,1,8,1,8,7,8,7,1,2,8,2,7,8,2,3,8,3 How many page faults will occur if the program has three page frames available to it and uses an optimal replacement? 7 8 9 None of the above Operating System isro2017 operating-system paging + – sh!va 7.1k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 6 6 votes 0 9 0 1 8 1 8 7 8 7 1 2 8 2 7 8 2 3 8 3 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 9 9 9 9 9 9 7 7 7 7 7 7 7 7 7 7 3 3 3 0 0 0 0 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 F F H F F H H F H H F H H H H H H F H H so total no. of page fault = 7 pawan kumarln answered May 8, 2017 • edited May 10, 2017 by pawan kumarln pawan kumarln comment Share Follow See all 2 Comments 2 2 Comments reply Prashant. commented May 8, 2017 reply Follow flag Draw hit also . 0 0 replyShare mayanksinghchandel commented Dec 29, 2025 reply Follow flag for 3rd last ref. of 3, while choosing from current pg. 2,7,8 to remove, i applied opt. algo. but failed bcoz nxt there was not even 2 of them present in reg. to decide 3rd one to replace. so i totally applied fifo on all 3 and found 8 came first, so replaced with 8 but i should apply fifo in 2,7 only bcoz atleast 8 was safe by opt. algo. tried earlier. 0 0 replyShare Please log in or register to add a comment.
2 2 votes Number of Page faults = 7. Hope it helps, AnilGoudar answered May 7, 2017 AnilGoudar comment Share Follow See all 2 Comments 2 2 Comments reply Ayush 3 commented Aug 23, 2025 reply Follow flag Which Replacement policy has been used please mention.. 0 0 replyShare Siddharth_Perkar commented Aug 21 reply Follow flag 'and uses an optimal replacement' - last few words of question itself 0 0 replyShare Please log in or register to add a comment.