Question: Modify fork3.c so that: a. The parent process creates two child processes that each print hello to the world. Be sure to tag each child
Modify fork3.c so that:
a. The parent process creates two child processes that each print hello to the world. Be sure to tag each child with a unique identifier (like child 1 or child-2).
b. Using the system call sleep(), modify the code so that each child thread will sleep (i.e. not be scheduled on the processor) for a randomly selected value of 1 through 5 seconds.

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