Process Management
Process Management
Process Management
Process models are processes of the same nature that are classified
together into a model. Thus, a process model is a description of a process
at the type level. Since the process model is at the type level, a process is
an instantiation of it.
Process States Life Cycle/Process states
When a process executes, it passes through different states. These stages
may differ in
different operating systems, and the names of these states are also not
standardized.
In general, a process can have one of the following states
1. five states model
Suspended process
Process is said to be suspended when it's temporarily move from main
memory to secondary storage.
Reasons why a process is suspended includes:
Swapping: OS needs to release required main memory to bring in a
process which is ready to execute.
Timing: Process can be suspended while waiting for the next time interval.
2. Process termination
There are 2 types of termination
A. Normal termination
a process is done or has completed whatever it was supposed to do and
executes an exit system call
It returns an output data to its parent process
All resources allocated to a process are freed by it at this time.
B. Forced termination
It's done by its parent process when it executes an abort system call. When a
parent process terminates the child process is also automatically terminated.
Cooperating process
Two process are said to be serial if the execution of one must be completed before the
execution of another process can start.
Two processes are said to be concurrent if their execution can overlap in time
A process which executes concurrently (parallel) and affect or get affected by another
process when data sharing or other resource sharing.
NB. Any process which shares data with other processes is a cooperating process.