The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+2 votes
293 views

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!

in Operating System by Boss (11.1k points) | 293 views
0
is answer 12?
0
No,given as 14
0
what will happen when all the page frames have the same counter value initially
0
whatever way m trying answer is coming out to be 13 only?
+2
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..
0
correct answer would be 15 page faults
0
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
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?

Please log in or register to answer this question.

Related questions

+1 vote
1 answer
3
+1 vote
1 answer
5
+1 vote
0 answers
7
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,807 questions
54,729 answers
189,319 comments
79,913 users