>>39
Actually, the whole set of processes will terminate as long as at least one number in the random sequence seeded at the start has the highest two bits set to zero (what >>30 is testing.) This can be proved by examining the characteristics of rand()'s algorithm.
The reason: as the child process doesn't call srand() again, it will continue to use the same random number sequence as the parent. So they all terminate simultaneously.