概述
僵尸进程&孤儿进程
On Unix and Unix-like computer operating systems, a zombie process or defunct process is a process that has completed execution (via the exit system call) but still has an entry in the process table: it is a process in the “Terminated state”. This occurs for child processes, where the entry is still needed to allow the parent process to read its child’s exit status: once the exit status is read via the wait system call, the zombie’s entry is removed from the process table and it is said to be “reaped”. A child process always first becomes a zombie before being removed from the resource table. In most cases, under normal system operation zombies are immediately waited on by their parent and then reaped by the system – processes that stay zombies for a long time are generally an error and cause a resource leak.
https://mozillazg.com/2017/07/python-how-to-generate-kill-clean-zombie-process.html?utm_source=tuicool&utm_medium=referral
最后
以上就是震动哈密瓜为你收集整理的python 僵尸进程&孤儿进程的全部内容,希望文章能够帮你解决python 僵尸进程&孤儿进程所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复