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?

  1. A. Best (1,1); worst (0,0)
  2. B. Best (0,1); worst (1,0)
  3. C. Best (1,0); worst (0,1)
  4. 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

Exams that ask this topic