What is Process Management and what is it needed for? |
|
A process is a single instance of an executable program. As such,
processes are sets of instructions to be executed by the processor. |
|
It is very important not to confuse processes and files. A file is a
set of data that can represent instructions but as well
something else like graphics, login information, or text. On the contrary,
a process is a set of data that are instructions and that the
processor will try to execute. |
A process is created whenever the CPU becomes involved in any activity.
All tasks that an operating system or any other software are going to perform
are divided into small pieces of work for the CPU. Such pieces of work can be
for instance:
|
Process Management is needed when a program is executed. The
process manager then
|
What is preemptive and non-preemptive multitasking? |
|
Preemptive Multitasking are process management schemes that
include the possibility of removing a process from the CPU
even if there is no I/O-request. In this case the process is set "ready" and has to queue again for getting calculation time. It is said to have been preempted. |
| A process can be removed for instance if its calculation takes too long or if a process with a higher priority enters the "ready"-state. |
|
Non-preemptive Multitasking are process management schemes that
do not allow to remove a process from the CPU until it is either finished or
issues an I/O-request. With non-preemptive schemes it is impossible to set a process directly from "running" to "ready".
|
|
See also:
|