Comments by "Lawrence D’Oliveiro" (@lawrencedoliveiro9104) on "" video.
-
9
-
8
-
7
-
6
-
5
-
4
-
4
-
3
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
1
-
5:47 It’s worth clarifying what the whole point of this “parent/child” relationship, and consequent possibility of “orphan” processes, is about: when a process terminates, it becomes a “zombie”, which means it still takes up a process slot, even though no process is running any more. At this point, it is up to its parent to pick up a notification of the termination of the child, via a call like wait(2) or similar; once it gets this notification, then the zombie process disappears, and that process slot is freed up to hold a new created process.
So, if you write a program on Linux or other POSIX-type system, and you spawn lots of processes, then you have to remember this rule to avoid your system running out of process slots: always gobble your zombie children.
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1