PPT Slide
UNIX-style Process Creation
- UNIX uses two system calls to start up a different program
- int fork() - create new process with a copy of current process’ memory, etc.
- int execv(char *path, char** argv) - load up new binary into current process
- void exit( int code) - exit current process and return an integer code
- int wait(int *code) - wait for any child process to issue exit() and find out the exit() return code
- Figure 3.14 demonstrates fork() call