Question: Develop a small program in C (or Java) using system calls (e.g. fork(), waitpid(), exit(), kill(), .) that does the following: a parent process creates

Develop a small program in C (or Java) using system calls (e.g. fork(), waitpid(), exit(), kill(), .) that does the following: a parent process creates a child process that prints its PID the child creates a grandchild and sleeps 120 seconds the grandchild immediatly exits . the parent sleeps for 60 seconds and then kills all the processes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
