if (!fork) { ; exit } if (!fork) { ; exit } if (!fork) { ; exit } # parent waits for A, B, and C 1 while wait() > 0;