Question
(Course: Operating System) Write a program for the following problems. It is recommended that the programs should be written and run on Ubuntu environment using
(Course: Operating System)
Write a program for the following problems. It is recommended that the programs should be written and run on Ubuntu environment using C/C++. Each program must be submitted with the output screen snapshot.
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
b) Use the procedure followed in 1(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.
c) Inter-Process Communication (IPC) is a set of methods for exchanging data among multiple processes. IPC is a very common mechanism in Linux and Pipes maybe one of the most widely used IPC methods. Using C/C++ program, you are required to establish a two-way communication between a parent and a child process using ordinary pipes (not named or FIFO pipes). The parent should send a message (sentence) to the child and the child should respond back.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started