How many processes are created in this program? [duplicate]
Here’s how I would find the answer. After each fork(), I would print the current process ID. When I run the program, I would note all of the unique process IDs, and that would tell me how many processes existed: This is my program: #include <stdio.h> #include <unistd.h> int main() { /* fork a child … Read more