Question: 3. Write a very simple program that will show the possibility of having zombie processes. Write a program named zombie.c The main process will create

 3. Write a very simple program that will show the possibility

3. Write a very simple program that will show the possibility of having zombie processes. Write a program named zombie.c The main process will create a child The child prints something like: "I am the child with pid Next, the child will sleep for 1 second. Child exits. and my parent has ppid The parent will print:I am the parent and my id is... Next, the parent sleeps for 30 seconds. Since the child ends first, and the parent didn't do wait(), the child will be for a while in the zombie state Run the parent in the background, so you can use the top command and identify the zombie, before the parent terminates Note: even if the parent terminates, the child is still a zombie. However the the init process reaps the zombies frequently You need to submit your homework solution on Blackboard YourLastname H2 I will create a homework column named H2 Your zip file should contain three files: 1. doc/txt file that cover parts A to E 2. zombie.c 3. snapshot of top command that shows the zombie process

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!