Process Creation

Parent processes can create child processes. Every process has an ID (PID) which it managed through.

There are different options for how parent and child processes can share resources (or not):

There are also options for how processes can be executed:

The child process can be a duplicate of the parent or it can have a new program loaded into it.

The OS may or may not allow child processes to exist without a parent. If it does not, it will use cascaded termination to terminate all child processes when their parent is terminated.

If a child terminates and the parent has already terminated without calling wait, the child is a Zombie process.

If the parent of a child terminates without calling wait, the children of that process are Orphan processes.