Question: Create a copy of called childcreates.c. Modify the C program so that each process creates exactly one a new process. Keep the printf call for
Create a copy of called childcreates.c. Modify the C program so that each process creates exactly one a new process. Keep the printf call for all processes. The resulting diagram will look something like the following when childcreates 3 is called: 414 -> 416 -> 417 -> 420.
Note : Before modifing, if we run childcreates 1, two processes are created, the original parent process and its child. Assuming the process id of the parent is 414 and the process id of the child is 416, we can represent the relationship between these processes using the following ASCII diagram: 414 -> 416

parentcreates.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
