1,209 views
6 votes
6 votes

If i have a Reference string with S  and page fault as N . then what is number of page fault when we take reverse of string sr ?

1)FIFO

2)LRU

3)MRU

4)OPTIMAL 

// i was given this question for 1 algorithm , but the i tried to find for all page replacement algorithm .

 

 

 

1 Answer

1 votes
1 votes

Arjun sir please kindly check this :)

// i can be wrong . i just tried it . it may happen that all relation ,ay be wrong and depends upon reference string only

Let us denote number of page fault with S = P1

let us denote number of page fault with S= P2

so according to me 

in case of fifo , p1 may or may not be equal to p2

in case of lru , p1= p2

in case of optimal p1=p2

in case of MFu p1 not equal to p2

Am i right sir ?

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
0 answers
2
2 votes
2 votes
1 answer
3
3lurryface asked Jan 9, 2019
1,108 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?
1 votes
1 votes
1 answer
4
Na462 asked Sep 29, 2018
729 views