当前位置:网站首页>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.
边栏推荐
- 仿网易云音乐小程序-uniapp
- 软件测试面试题:您以往所从事的软件测试工作中,是否使用了一些工具来进行软件缺陷(Bug)的管理?如果有,请结合该工具描述软件缺陷(Bug)跟踪管理的流程?
- LeetCode Hot 100
- QSunSync 七牛云文件同步工具,批量上传
- First, the basic concept of reptiles
- 软件测试面试题:什么是软件测试?软件测试的目的与原则?
- 【unity编译器扩展之模型动画拷贝】
- 2022杭电多校第三场 K题 Taxi
- Redis visual management software Redis Desktop Manager2022
- 软件测试面试题:测试用例通常包括那些内容?
猜你喜欢
[CVA Valuation Training Camp] Financial Modeling Guide - Lecture 1
leetcode: 266. All Palindromic Permutations
看图识字,DELL SC4020 / SCv2000 控制器更换过程
Redis visual management software Redis Desktop Manager2022
First, the basic concept of reptiles
性能测试如何准备测试数据
数据类型-整型(C语言)
Cloud native - Kubernetes 】 【 scheduling constraints
【论文笔记】—低照度图像增强—Unsupervised—EnlightenGAN—2019-TIP
10 个关于 Promise 和 setTimeout 知识的面试题,通过图解一次说透彻
随机推荐
TinyMCE禁用转义
Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
软件测试面试题:测试生命周期,测试过程分为几个阶段,以及各阶段的含义及使用的方法?
软件测试面试题:软件测试类型都有哪些?
Software Testing Interview Questions: What aspects should be considered when designing test cases, i.e. what aspects should different test cases test against?
Brainstorm: Complete Backpack
2022杭电多校第一场 1004 Ball
软件测试面试题:网络七层协仪具体?
More than 2022 cattle school training topic Link with the second L Level Editor I
【unity编译器扩展之模型动画拷贝】
Redis visual management software Redis Desktop Manager2022
2022 Hangzhou Electric Multi-School 1004 Ball
leetcode经典例题——单词拆分
2 用D435i运行VINS-fusion
软件测试面试题:您以往所从事的软件测试工作中,是否使用了一些工具来进行软件缺陷(Bug)的管理?如果有,请结合该工具描述软件缺陷(Bug)跟踪管理的流程?
软件测试面试题:LoadRunner 分为哪三个模块?
SV 类的虚方法 多态
ansible学习笔记分享-含剧本示例
【无标题】
Metasploit-域名上线隐藏IP