CS FundamentalsHardGATE CS · Advanced
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 optimal (Belady OPT) policy. By how many does the number of page faults under LRU exceed that under OPT?
- A. 3
- B. 9
- C. 12
- D. 2
Correct answer: A. 3
Count LRU faults (12) and OPT faults (9, evicting the page used farthest in the future); the gap is 3. FIFO would give 11 faults on this string.
More Operating Systems questions
- 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…
- A disk has cylinders 0-199. The head is at cylinder 96 and is moving towards higher numbers; the pending requests are for cylinders 21…