CS FundamentalsVery hardGATE CS (PYQ pattern)
MFU replacement with 3 frames (initially empty): the victim is the resident page with the LARGEST reference count since it was loaded (ties: evict the page loaded earliest; counts restart when a page is reloaded). Reference string: 3, 1, 1, 5, 3, 4, 4, 5, 3, 2, 2, 3, 4, 1, 2, 5, 4, 1, 1, 1. How many page faults occur?
- A. 11
- B. 10
- C. 8
- D. 9
Correct answer: D. 9
MFU gives 9 faults on this string, LRU gives 11: MFU assumes the most used page is finished with, which works here because the heavily used pages stop being referenced.
More Operating Systems questions
- FIFO page replacement is run on the string 6, 1, 7, 2, 7, 2, 1, 5, 1, 1, 7, 5, 3, 1, 1, 7, 4, 5, 3, 4 (memory initially empty) with each…
- The clock algorithm uses 3 frames (initially empty); the reference bit is set when a page is loaded and on every hit. On a fault the hand…
- A counting semaphore S starts at 3 and is implemented so that wait() decrements S and blocks the caller if S becomes negative, while…
- A 16-core machine must unmap a page that all cores have in their TLBs. The initiating core sends an inter-processor interrupt to each of…
- Two periodic tasks with deadline = period and zero release offset: T1 (C=2, P=5) and T2 (C=4, P=7). Total utilisation is 2/5 + 4/7 ≈…
- Three periodic tasks (deadline = period, all released at t=0) are scheduled by preemptive rate-monotonic scheduling: T1 (C=2, P=5), T2…