Operations on Processes

The System must provide mechanisms for:

Process Creation

Parent process create Children processes, which may make more of their own, creating a Tree

Each Process has a Process Identifier (PID)

Resource Sharing Options:

Execution Options:

A Child is ether:

fork() - system call creates a new process

exec() - replaces the processes memory space with a new process

wait() - parent process calls wait() while waiting for the child process to terminate

exit() - deletes child process, returns status data to wait command, resources are dealocated

Process Termination

  1. Process is deleted
  1. Resources are realocated

abort() - used when parent wants to stop child process

Reasons include:

Zombie - there is no parent waiting

Orphan - parent process terminated without using wait()

Example of multiprocess architecture