当前位置:网站首页>Zombie and orphan processes
Zombie and orphan processes
2022-08-05 00:22:00 【~ Pompeii】
Zombie and orphan processes
- We know that in unix/linux, under normal circumstances, the child process is created by the parent process, and the child process is creating a new process.The termination of the child process and the running of the parent process are an asynchronous process, that is, the parent process can never predict when the child process will end.When a process finishes its work and terminates, its parent process needs to call the wait() or waitpid() system call to obtain the termination status of the child process.
- Orphan process: A parent process exits while one or more of its child processes are still running, then those child processes will become orphaned.The orphan process will be adopted by the init process (process number 1), and the init process will complete the state collection work for them.
- Zombie process: A process uses fork to create a child process. If the child process exits and the parent process does not call wait or waitpid to obtain the status information of the child process, the process descriptor of the child process is still stored in the system.Such processes are called zombie processes.
边栏推荐
猜你喜欢
随机推荐
软件测试面试题:系统测试的策略有?
00、数组及字符串常用的 API(详细剖析)
TinyMCE禁用转义
Software Testing Interview Questions: What aspects should be considered when designing test cases, i.e. what aspects should different test cases test against?
leetcode:269. 火星词典
Mysql_12 多表查询
【云原生--Kubernetes】调度约束
软件测试面试题:软件测试类型都有哪些?
2022 Niu Ke Summer Multi-School Training Camp 5 (BCDFGHK)
电子行业MES管理系统的主要功能与用途
GO中sync包自由控制并发的方法
Cloud native - Kubernetes 】 【 scheduling constraints
2022杭电多校训练第三场 1009 Package Delivery
软件测试面试题:软件验收测试的合格通过准则?
工业物联网 —— 新型数据库的召唤
First, the basic concept of reptiles
node使用redis
leetcode经典例题——单词拆分
gorm联表查询-实战
Raw and scan of gorm








