CS FundamentalsHardGATE CS · Advanced
A process with pages numbered 0 to 4 references them in the order 0 4 0 1 3 4 0 1 4 0 2 0 4 1 3 2. Under FIFO replacement with initially empty memory, how many page faults occur with 3 frames and with 4 frames respectively?
- A. 9 and 10
- B. 10 and 9
- C. 11 and 7
- D. 9 and 9
Correct answer: A. 9 and 10
Simulate FIFO queues for both sizes: 9 faults with 3 frames and 10 with 4 frames, an instance of Belady's anomaly (more frames, more faults). LRU, a stack algorithm, never does this (it gives 11 and 7).
More Operating Systems questions
- With 3 initially empty frames, the reference string 1 1 1 3 2 6 6 3 3 5 2 5 1 5 6 2 4 6 4 6 5 3 is processed under LRU and under the…
- A process makes 18 page references (times 1 to 18): 2 4 4 3 4 2 4 5 2 5 5 2 1 1 3 5 4 1. The working set W(t, 5) is the set of distinct…
- A multilevel feedback queue has three queues: Q0 (round robin, quantum 4 ms), Q1 (round robin, quantum 8 ms) and Q2 (FCFS). Queues are…
- Five processes (arrival time, CPU burst) are: P1 (1, 8), P2 (4, 1), P3 (0, 3), P4 (7, 6), P5 (5, 1). With preemptive…
- The Banker's algorithm is applied to 5 processes P0-P4 and 3 resource types with Available = (1, 1, 3). P0: Allocation (1, 2, 1), Max (1…
- A system with 3 resource types has Available = (0, 0, 1) and 7 processes P0-P6. P0: Allocation (1, 1, 1), Request (1, 0, 0); P1…