Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

Nuclear sizes are expressed in a unit named?

Answered: 1 week ago

Question

How will you deal with them?

Answered: 1 week ago

Question

What benefits are you looking to gain?

Answered: 1 week ago

Question

How do they look and behave?

Answered: 1 week ago