Question:

Choose the correct statements about fork and vfork system calls. Statement-I: vfork is faster than fork. Statement-II: fork is safer than vfork. Statement-III: vfork shares parent's memory, fork copies memory.

Show Hint

fork() = safer, separate memory vfork() = faster, shared memory
Updated On: Jun 25, 2026
  • Statement-I and Statement-II only
  • Statement-II and Statement-III only
  • Statement-I and Statement-III only
  • Statement-I, Statement-II and Statement-III
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Concept: Both fork() and vfork() create a child process, but they differ in memory handling.

Step 1:
Analyze Statement-I.
vfork() avoids copying the parent's address space. Therefore it executes faster than fork(). Hence Statement-I is true.

Step 2:
Analyze Statement-II.
fork() gives the child a separate memory space. This prevents accidental modification of the parent's data. Hence fork() is safer. Statement-II is true.

Step 3:
Analyze Statement-III.
In vfork(), the child temporarily shares the parent's memory. In fork(), the child receives a copy of the parent's memory space. Thus Statement-III is true.

Step 4:
Determine the final answer.
All three statements are correct. \[ \boxed{\text{Statement-I, Statement-II and Statement-III}} \]
Was this answer helpful?
0
0