CS FundamentalsVery hardGATE CS

vfork() differs from fork() in that:

  1. A. The child gets a full private copy of all memory immediately
  2. B. The child borrows the parent's address space and the parent is suspended until the child calls exec() or _exit()
  3. C. The child and parent run concurrently sharing memory like threads
  4. D. The child cannot call exec()

Correct answer: B. The child borrows the parent's address space and the parent is suspended until the child calls exec() or _exit()

vfork predates copy-on-write: no address space is copied, so the parent is blocked until the child execs or exits; the child must not modify memory or return from the calling function.

More Operating Systems questions

Exams that ask this topic