If a process executes the following code
fork(); fork(); fork();
The total number of child processes created is given as 7 by a text book. But how does that happen
fork generates 2 processes right? Are both the processes referred to as child processes? One process is the parent parent and one is the child right? Even if both the processes are referred to as child processes,2*3=6? The main process is not a child process,how does the number 7 come into the picture.