CS FundamentalsHardGATE CS
In the enhanced second-chance (NRU-style) algorithm using (reference, modify) bit pairs, which class of page is the BEST victim and which the WORST?
- A. Best (1,1); worst (0,0)
- B. Best (0,1); worst (1,0)
- C. Best (1,0); worst (0,1)
- D. Best (0,0): not recently used, clean; worst (1,1): recently used and dirty
Correct answer: D. Best (0,0): not recently used, clean; worst (1,1): recently used and dirty
(0,0) is unlikely to be needed soon and needs no write-back. (0,1) is preferred over (1,0) because recent use matters more than write cost. (1,1) is both likely to be used and costly to evict.
More Operating Systems questions
- Assertion (A): Local page replacement can reduce thrashing caused by one misbehaving process affecting others. Reason (R): With local…
- Copy-on-write after fork(): the parent has 1000 resident pages. The child immediately calls exec(). Roughly how many page copies does COW…
- What is the main advantage of memory-mapped files (mmap) over read()/write() for random access to a large file?
- Which statement about the page-fault rate versus the number of allocated frames is generally correct for a process with locality?
- The working-set model chooses a window Δ. What happens if Δ is too small and if it is too large?
- Page-fault-frequency (PFF) control sets an upper and a lower bound on each process's fault rate. If a process's rate exceeds the upper…