Question: Hello, I need to write a C program that runs on Linux: 1. Create n child processes using fork(); 2. The child processes should wait
Hello, I need to write a C program that runs on Linux:
1. Create n child processes using fork();
2. The child processes should wait for signal passed from the parent process using pipe();
3. The parent process, in the end, should wait for all child processes to terminate to avoid orphan or zombie process.
How can I do this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
