Systems Programming Homework
Write a program that uses two pipes to enable bidirectional communication between a parent process and a child process.
The program should perform as follows:
- The parent process prompts the user to input a line of text via stdin
- If the received text is exit, both processes terminate. Otherwise, the parent uses one of the pipes to send this text to the child process.
- The child process converts the received text to all uppercase and sends it back to the parent via the other pipe.
- The parent reads the data coming back from the child process and prints it to stdout
- [Go back to Step 1]
Upload your code (do your own work!) here as a single C file named abc123_loopback.c
8 years ago 20
Answer(1)
Purchase the answer to view it
NOT RATED
- abc123_loopback.c
other Questions(10)
- mechanics of solids
- help with math
- Thank you! Please rate me and use me again for future help! Recommend me to your friends as well :)
- homework help
- 1,000–1,500 words: Human Capital Management and Leadership Styles
- Outsourcing/ Insourcing Proposal
- Accounting week 3 work for WAQAS1ACA only
- Discussion
- FIN 515 Week 4 Homework Assignment
- Psych 655 Validity and Reliability Worksheet Week Two