Question: Develop a small program in C using system calls (e.g. fork(), waitpid(), exit(), kill(), ..) that does the following: - a parent process creates a
Develop a small program in C 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 immediately exits - the parent sleeps for 60 seconds and then kills the processes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
