cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
child process execution start point
child process execution start point
Aug 7, 2010 at 9:16pm UTC
Tricota
(7)
Hi I'm having some doubts with forking child processes.
Where does the child process start to execute? is it right after the fork() sentence ?
thanks
Aug 7, 2010 at 9:56pm UTC
helios
(17574)
fork() makes an exact duplicate of the calling process. The only difference between the two processes is that fork() will return different values for the parent and for the child.
Aug 7, 2010 at 11:27pm UTC
Tricota
(7)
Ok, that I understand. But my doubt was whether the child process starts executing the code at the begining of the file or after the fork() line.
regards.
Aug 7, 2010 at 11:45pm UTC
m4ster r0shi
(2201)
The latter.
http://www.csl.mtu.edu/cs4411/www/NOTES/process/fork/create.html
Last edited on
Aug 7, 2010 at 11:47pm UTC
Topic archived. No new replies allowed.