share knowledge of OS

Friday, May 21, 2010

Process termination

There are many reasons for process termination:

* Batch job issues halt instruction
* User logs off
* Process executes a service request to terminate
* Error and fault conditions
* Normal completion
* Time limit exceeded
* Memory unavailable
* Bounds violation; for example: attempted access of (non-existent) 11th element of a 10-element array
* Protection error; for example: attempted write to read-only file
* Arithmetic error; for example: attempted division by zero
* Time overrun; for example: process waited longer than a specified maximum for an event
* I/O failure
* Invalid instruction; for example: when a process tries to execute data (text)
* Privileged instruction
* Data misuse
* Operating system intervention; for example: to resolve a deadlock
* Parent terminates so child processes terminate (cascading termination)
* Parent request

No comments:

Post a Comment