Computer System, Computer Science, Operating Systems.
(1) receiving a signal whose default action is to terminate the process, (2) returning from the main routine, or (3) calling the exit function 从程序员角度看进程有以下状态： Running — 在CPU上执行或者等待被内核调度。 Suspended — 进程被挂起，不会被调度。收到SIGSTOP、SIGTSTP、SIGTTIN、SIGTTOU信号时进程挂起，直到收到SIGCOUT信号才恢复Running状态。 Terminated —