Question: Write a program in C to create 10 child processes by using loop and 2 child process without using a loop, printing messages at the
Write a program in C to create 10 child processes by using loop and 2 child process without using a loop, printing messages at the start and end of each process indicating the PIDS of those processes. Parent process should wait for the child to terminate and print a message once the child has completed.
the program should use fork() to start each new process and wait() to collect the return status (and possibly check the PID) of each
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
