Given the following code snippet:
for (i=0; i<4; i++) {
x = fork();
}
How many processes are created?
Using the program in Figure 3.34 (Figure 3.29 in the 8th edition), identify the values of pid at lines A, B, C, and D. (Assume that the actual pids of the parent and child are 2650 and 2653, respectively.)