Definition
Process Termination
Process termination is the act of ending a process’s execution. Upon termination, the operating system reclaims all resources assigned to the process and removes its entry from the Process Table.
Triggers
A process may terminate for several reasons:
- Normal Completion: The process executes its final instruction (e.g.,
exit()call). - User Logout: The user ending their session terminates associated processes.
- Error/Exception: A fatal error occurs, such as a segmentation fault or division by zero.
- Killed by Parent: A parent process ends a child process.
- Killed by OS: The OS terminates a process due to resource exhaustion or security violations.