CS FundamentalsVery hardGATE CS
vfork() differs from fork() in that:
- A. The child gets a full private copy of all memory immediately
- B. The child borrows the parent's address space and the parent is suspended until the child calls exec() or _exit()
- C. The child and parent run concurrently sharing memory like threads
- 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
- Which inter-process communication mechanism does NOT need the kernel to copy the data between the two processes for each message?
- A pipe has capacity 64 KB. A writer process writes 100 KB with a single write() call while no process ever reads from the pipe. What…
- A process ignores SIGINT and then calls exec() to run a new program. Which statement is correct?
- Which signals can neither be caught nor ignored by a process?
- How many of these statements about microkernels are correct? 1. Device drivers and file systems typically run in user space as servers. 2…
- What is the purpose of the dual-mode (user/kernel) bit together with a timer interrupt?