Question by Heart of the Matter: In Linux what happens to the parent process when the child process executes?
yes it is a question for school, but I would like to know the answer also…
I have tried googling it, but this question must be too basic or something, because I get a lot of complex answers about security glitches and people taking over root access and such…instead of me being able to find out the simple thing that happens…
also it is not in my book…
Best answer:
Answer by Rose D
I believe it depends upon how you spawn the child process – are you talking about threading, forking or cloning?
These should give you some basic ideas, or at least pointers for better searches:
http://linux.die.net/man/2/clone
http://linux.about.com/library/cmd/blcmdl2_wait4.htm
http://en.wikipedia.org/wiki/Exit_(operating_system)
http://www.digilife.be/quickreferences/QRC/LINUX%20System%20Call%20Quick%20Reference.pdf
Know better? Leave your own answer in the comments!
© Copyright 2010-2012. Technology2Reality. All Rights Reserved