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
38 views
asked Feb 21, 2014 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 Feb 21, 2014 by john Guru (27,140 points)

Related questions

0 votes
1 answer 24 views
24 views asked Jan 7, 2014 by sara Guru (24,570 points)
0 votes
1 answer 23 views
23 views asked Feb 21, 2014 by john Guru (27,140 points)
0 votes
1 answer 206 views
206 views asked Feb 20, 2014 by sara Guru (24,570 points)
0 votes
1 answer 39 views
39 views asked Jan 7, 2014 by sara Guru (24,570 points)
...