Processes in Unix
- Identified bu a unique integer, known as the process identifier or
PID
- Created by the fork system call
- New process is the copy of the address space of the original process to
allow easy communication of the parent process with its child
- Both processes continue execution at the instruction after the fork
- Return code for the fork is
- Zero for the child process
- process id of the child for the parent process
- Use execve system call after fork to replace the child
process's memory space with a new program (binary file)