Question: Fork() Function (Ubuntu environment using C/C++) a) Create a child process that copy the parent address space and then make the child as a zombie

Fork() Function (Ubuntu environment using C/C++)

a) Create a child process that copy the parent address space and then make the child as a zombie process. Use ps utility to demonstrate that the zombie has been created. (Please note that the zombie process is usually depicted as or +Z in Ubuntu).

b) Use the procedure followed in part (a) to make the child process as orphan. You are required to show that the orphan process has been handed over to the init process whose pid is 1or the child parent has changed.

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!