recategorized by
2,074 views
1 votes
1 votes

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)$
recategorized by

2 Answers

1 votes
1 votes
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
Answer:

Related questions

0 votes
0 votes
2 answers
4
go_editor asked Nov 20, 2020
1,006 views
Match $\text{List I}$ with $\text{List II}$$\begin{array}{llll} & \text{List I} & & \text{List II} \\ (A) &\text{Handshaking} & (I) & \text{I/O interface informs the CPU}...