Process Management
Process Management
PROCESS MANAGEMENT
Karanja Mwangi
Lesson objective
The Termination ?
(William Stallings book )
• normal termination,
• execution time-limit exceeded,
• a resource requested is unavailable,
• an arithmetic error (division by zero),
• a memory access violation,
• an invalid request of memory or a held resource,
• an operating system or parent process request, or
• its parent process has terminated.
Swapping? resources such as memory are finite
When none of the processes in main memory is Ready, the
operating system swaps the memory of some of
the Blocked processes to disk to recover some memory space.
Such processes are moved to a new state: the Suspend state, a
queue of processes that have been "kicked out" of main memory:
Recap:
Process Transitions{Summary of states}
$ pgrep process
Such as $ pgrep vlc
Linux basics -6 Controlling processes
Changing linux programs priorities
We know that - higher priority will normally get more CPU time than lower
priority processes
the process have to wait for other processes to free resources before it
can access them
The less the value, the highest the priority of the process. Values
ussually between -20 to 19
Then …..
$ nice -n 19 ./script.sh
$ renice +8 5717
Good tools to have : dstat or sysstat