Question discussion

In the copy-on-write technique used when a process calls fork(), the pages of the parent are copied for the child

2351Medium DSSSB TGT Computer Science 0 replies 1 views
0

In the copy-on-write technique used when a process calls fork(), the pages of the parent are copied for the child

  • Aonly when either process modifies a shared page
  • Bimmediately, at the moment of the fork
  • Conly when the child calls exec()
  • Donly when the parent terminates
Correct answer: A

Explanation

The parent and the child initially share the same physical pages marked read-only; a page is duplicated only when one of them writes to it.

Discussion 0

Nobody has replied yet. Start the discussion!