Unix Fork/Exec/Exit/Wait Example
int pid = fork();
Create a new process that is a clone of its parent.
exec*(“program” [, argvp, envp]);
Overlay the calling process virtual memory with a new program, and transfer control to it.
exit(status);
Exit with status, destroying the process.
int pid = wait*(&status);
Wait for exit (or other status change) of a child.