in Operating System recategorized by
2,026 views
1 vote
1 vote

Consider a hypothetical machine with $3$ pages of physical memory, $5$ pages of virtual memory, and $<A, B, C, D, A, B, E, A, B, C, D, E, B, A, B>$ as the stream of page reference by an application. If $P$ and $Q$ are the number of page faults that the application would incur with FIFO and LRU page replacement algorithms respectively, then $(P,Q)=$ _______(Assuming enough space for storing $3$ page frames)

  1. $(11,10)$
  2. $(12,11)$
  3. $(10,11)$
  4. $(11,12)$
in Operating System recategorized by
2.0k views

1 comment

3 pages in a frame .FIFO :  A ,B ,C ,D  ,A ,B ,E, C ,D ,B,A   total : 11

LRU :  A ,B ,C ,D  ,A ,B ,E, C ,D ,E,B,A total : 12

hence option D (11,12) IS CORRECT.
0
0

2 Answers

1 vote
1 vote
3 pages of physical memory means 3 frames (so at a time only max 3 page in  frames)

 5 pages of  virtual memory means 5 page

 A B C D A B  E A B C D E B A B

FIFO  Page Fault  for  A ,B ,C ,D  ,A ,B ,E, C ,D ,B,A   TOTAL= 11

LRU   Page Fault  for  A ,B ,C ,D  ,A ,B ,E, C ,D ,E,B,A   TOTAL= 12

Option 4 is the right ans

1 comment

5 pages of virtual memory is signifying the pages A, B, C, D, E. Right?
0
0
1 vote
1 vote

The answer is D option.

Answer:

Related questions