Question: Write a C program that creates 2 pipesand forks a child process. The parent then sends the following message on his side of the pipe

Write a C program that creates 2 pipesand forks a child process. The parent
then sends the following message on his side of the pipe I am your daddy! and my name
is
, the child receives this message and prints it to its
stdout verbatim. The parent then blocks reading on the pipe from the child. The child
writes back to its parent through its side of the pipe stating Daddy, my name is . The parent then writes the message received from the child to its stdout.
Make sure the parent waits on the child exit as to not creating orphans or zombies:
creating such leftover will result in zero grade

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 Accounting Questions!