int main(int argc, char const *argv[])
{
fork();
fork();
fork();
exit(0);
}
Can this about code create a Zombie process? if yes how and how many? It would be great if you could elaborate. Also can see process becoming a zombie using ps aux | grep a.out
ps aux | grep a.out
No, that won't create any zombie processes. When a process becomes orphaned (because its parent called exit
, for example), init
adopts it, and init
quickly reaps any of its children that die.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.