Hi I’m working gin C++ on Linux platform.
I have a parent process. i need to create two child process from this parent which will be execute in parallel for some time. While Parent process is waiting for both the process to complete and then it finishes its execution.
any suggestion ?
use
fork()andexecfamily of functions to start child processes.parent process can call
waitpidtill child process exists.exec link: http://linux.about.com/library/cmd/blcmdl3_execvp.htm