Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Difference between the fork() and vfork() system call?

4 like 0 dislike
Hello
Difference between the fork() and vfork() system call in unix?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by DBA-boss (120,990 points)

1 Answer

1 like 0 dislike
 
Best answer
During the fork() system call the Kernel makes a copy of the parent process’s address space and attaches it to the child process. But the vfork() system call do not makes any copy of the parent’s address space, so it is faster than the fork() system call. The child process as a result of the vfork() system call executes exec() system call. The child process from vfork() system call executes in the parent’s address space (this can overwrite the parent’s data and stack ) which suspends the parent process until the child process exits.
answered 1 year ago by eagles11 (179,830 points)

Related questions

7 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)
4 like 0 dislike
3 answers
8 like 0 dislike
1 answer
5 like 0 dislike
0 answers