CS FundamentalsModerateGATE CS
Which statement about the dirty (modified) bit in a page-table entry is correct?
- A. It is set whenever the page is read
- B. If a victim page's dirty bit is clear, it need not be written back, so the page fault costs one transfer instead of two
- C. It tells the OS which pages are in the TLB
- D. It is needed only for read-only pages
Correct answer: B. If a victim page's dirty bit is clear, it need not be written back, so the page fault costs one transfer instead of two
Hardware sets the dirty bit on a write. A clean victim already matches its copy on disk, so it can simply be overwritten, halving the I/O for that fault.
More Operating Systems questions
- In the enhanced second-chance (NRU-style) algorithm using (reference, modify) bit pairs, which class of page is the BEST victim and which…
- 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?