Question: Write c-statements to create exactly two new processes. 1. The first child process stores its process id in data[0], data[1], ..., data[m-1] of the array
Write c-statements to create exactly two new processes.
1. The first child process stores its process id in data[0], data[1], ..., data[m-1] of the array field data in the shared memory objet
2. The second child stores its process id in data[m], data[m+1], ..., data[s-1] of the array field data in the shared memory object
3. The parent process will wait for both child process to complete.
The system call getpid() returns the caller's process id
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
