C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

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

0 votes
39 views
asked by sara Guru (24,570 points)

1 Answer

0 votes
 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 by john Guru (27,140 points)

Related questions

0 votes
1 answer 24 views
24 views asked by sara Guru (24,570 points)
0 votes
1 answer 23 views
23 views asked by john Guru (27,140 points)
0 votes
1 answer 214 views
0 votes
1 answer 40 views
...