CS FundamentalsHardGATE
Reference string: 5, 0, 3, 8, 1, 6, 2, 9, 4, 7, 0, 3, 8. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal (Belady's MIN) replacement cause, respectively?
- A. FIFO 13, LRU 13, Optimal 11
- B. FIFO 13, LRU 13, Optimal 10
- C. FIFO 14, LRU 13, Optimal 10
- D. FIFO 13, LRU 14, Optimal 10
Correct answer: B. FIFO 13, LRU 13, Optimal 10
Simulating each policy frame-by-frame on this string with 4 frames gives FIFO 13 faults, LRU 13 faults and Optimal 10 faults; Optimal is always the lower bound since it evicts the page used farthest in the future.
More Operating Systems questions
- Reference string: 5, 0, 3, 8, 1, 6, 2, 9, 4, 7, 0, 3, 8. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- A disk has cylinders 0–199 and the head is at cylinder 53. Pending requests: 98, 183, 37, 122, 14, 124, 65, 67. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65…
- A disk has cylinders 0–199 and the head is at cylinder 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65…
- A disk has cylinders 0–199 and the head is at cylinder 76. Pending requests: 45, 130, 12, 180, 90, 150, 60, 170. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 76, moving towards cylinder 0. Pending requests: 45, 130, 12, 180, 90, 150, 60…