Inter-process communication-pipe between parent and child


Question:

Inter-process communication: Pipe between parent and child

Write a program "oneway" which implements a one-way communication between a parent process and it's child using a pipe.

The parent takes a message (from the command line), sends it to the child (through the pipe), and the child displays the message.

The program has just one argument on the command line (the message).

An example of the execution could be:

Prompt -> oneway hellothere

I am the parent. I sent the message: hellothere.

I am the child. I received the message: hellothere.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Inter-process communication-pipe between parent and child
Reference No:- TGS01934916

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)