2 votes 2 votes A.11 B.12 C.13 D.14 Couldn't visualize how counter is assigned and how page is exactly replaced based on counter.Visual representation would be helpful rather than just ans! Operating System page-fault operating-system page-replacement + – Prajwal Bhat asked Dec 27, 2016 Prajwal Bhat 987 views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Pavan Kumar Munnam commented Dec 27, 2016 reply Follow Share is answer 12? 0 votes 0 votes Prajwal Bhat commented Dec 27, 2016 reply Follow Share No,given as 14 0 votes 0 votes Turning Turing commented Dec 27, 2016 reply Follow Share what will happen when all the page frames have the same counter value initially 0 votes 0 votes sudsho commented Dec 27, 2016 reply Follow Share whatever way m trying answer is coming out to be 13 only? 0 votes 0 votes sudsho commented Dec 27, 2016 reply Follow Share we can do it in 2 ways...first assign each frame a counter and increment it each time we get a request...in this way we'll get 13 pagefaults but here i haven't considered the fact of decrementing the counter... if we decrement also,each time a page is not referred for that frame..then it will eventually turn out to be FIFO only..so again 13 page faults.. 2 votes 2 votes balagangadhar12 commented Jan 1, 2017 reply Follow Share correct answer would be 15 page faults 0 votes 0 votes sudsho commented Jan 1, 2017 reply Follow Share i know how u reached 15...but then whats the use of this question and implementing a counter..simply do FIFO..u'll get even less page faults; 0 votes 0 votes balagangadhar12 commented Jan 1, 2017 reply Follow Share if you do optimal replacement you will get even less page faults. but the question is to find out what is the answer according to the given algorithm. so just confine yourself to the question. why thinking too much? 0 votes 0 votes Please log in or register to add a comment.