edited by
12,755 views
3 votes
3 votes
Assume that you have a page-reference string for a process with m frames (initially all empty). The page-reference string has length p; n distinct page numbers occur in it.Answer these questions for any page replacement algorithms:

a. What is a lower bound on the number of page faults?

b. What is an upper bound on the number of page faults?
edited by

3 Answers

Best answer
2 votes
2 votes
a) lower bound on the number of page faults:
 n when all pages in reference string must page in (given distinct page numbers)

b) upper bound on the number of page faults:
 p when every page in ref string causes a fault
selected by
1 votes
1 votes
"The page-reference string has length p; n distinct page numbers occur in it." It means, p references to pages with n of them being unique. Or p-n are repetitions.

So, the lower bound on the number of page fault = n (but we have to set n<m, else we may get more page faults than 'n') and

Upper Bound should be = P (but again we've to set m=1, else we may get less page faults than P)
0 votes
0 votes
1.Best Case:

When the number of distinct pages are 'n' which is less than the total number of available page frame 'm'.In this case there will be only n page faults.

So the minimum number of page faults will be n.

2.Worst case:

Let us assume that m=1 i.e there is only one page frame available.In this case all the p page references will create page faults.

So the maximum page faults will be p.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
Nam14 asked Apr 5, 2023
531 views
Please read below passage from 10th edition Operating System Concepts, pg. 202:5.1.3 Preemptive and Nonpreemptive SchedulingCPU-scheduling decisions may take place under ...
1 votes
1 votes
1 answer
3
FaisalSyed asked Mar 16, 2023
296 views
Does Waiting Time and Response TIme remains the same in Preemptive Scheduling Algorithm???