Process Creation
- Parent and children share all resources
- Children share subset of parent’s resources
- Parent and child share no resources
- Parent and children execute concurrently
- Parent waits until children terminate
Process Creation (Cont.)
- Child duplicate of parent
- Child has a program loaded into it
- fork system call creates new process
- exec system call used after a fork to replace the process’ memory space with a new program
Process Creation
Process Termination
- Output data from child to parent (via wait)
- Process’ resources are deallocated by operating system
- Child has exceeded allocated resources
- Task assigned to child is no longer required
- If parent is exiting
- Some operating systems do not allow child to continue if its parent terminates
- All children terminated - cascading terminati
- Some operating systems do not allow child to continue if its parent terminates