Write a program that creates a ring of three processes connected by pipes. The first process should prompt the user for a string and then send it to the second process. The second process should reverse the string and send it to the third process. The third process should convert the string to uppercase and send it back to the first process. When the first process gets the processed string, it should display it to the terminal. When this is done, all three processes should terminate. (diagram and example omitted)

What will be an ideal response?


This program should create the pipes and then fork () two children. The parent process will then
do the prompting and other I/O to the terminal and communicate with the other processes via the
pipes that all share.

Computer Science & Information Technology

You might also like to view...

Signal and wait are examples of ______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Pressing and holding [Shift] when rotating rotates the artwork in ____ degree increments.

A. 5 B. 10 C. 15 D. 20

Computer Science & Information Technology

If you have a worksheet with quarterly data that you want to show in a PowerPoiint presentation as well as a Word document and have editing changes reflected in both, you should use:

A) copying. B) grouping. C) linking. D) embedding.

Computer Science & Information Technology

The cast operator has the syntax ____.

A. (dataType expression) B. (expression dataType) C. (dataType) expression D. expression (dataType)

Computer Science & Information Technology