I know that it might come as a stupid question but could anyone help me understand the behavior of the following code snippet
//label 0 int main(){ fork();
After the first fork, you have two processes. Both hit the second fork, creating four processes in total.
All four hit the third fork, so you have eight processes. Then they all exit.