Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match the following flag bits used in the context of virtual memory management on the List I (Name of the bit) with the different purposes on the List II (Purpose) of the table mentioned :

List I (Name of the bit)List II (Purpose)
(i) Dirty(a) Page initialization
(ii) R/W(b) Write-back policy
(iii) Reference(c) Page protection
(iv) Valid(d) Page replacement policy

  • A.(i)-(d), (ii)-(a), (iii)-(b), (iv)-(c)
  • B.(i)-(b), (ii)-(c), (iii)-(a), (iv)-(d)
  • C.(i)-(c), (ii)-(d), (iii)-(a), (iv)-(b)
  • D.(i)-(b), (ii)-(c), (iii)-(d), (iv)-(a)

Answer: D

The correct matching is (i)-(b), (ii)-(c), (iii)-(d), (iv)-(a).

  • The dirty (modified) bit tells the system whether a page must be written back to disk before replacement: the write-back policy.
  • The R/W bit marks a page read-only or writable: page protection.
  • The reference bit records recent use, which page replacement algorithms such as clock and LRU approximations use.
  • The valid bit says whether the page is in memory and properly initialised for this process: page initialization.

The other codes give the dirty bit to replacement or protection, which is not its role.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.