Question: Programs should only use system calls for obtaining input and creating output. Use system calls, not print statements 1. piper Write a program that creates
1. piper Write a program that creates a two child processes. The parent should communicate with the two children through pipes. The parent should read numbers from STDIN and send them to both children. The numbers are input as ASCII values separated by spaces or newlines. One child should add the numbers and save the results in a file, addout and the other child should multiply the numbers and save the result to multout. Be sure that results are saved as ASCII strings. The solution should be insensitive to the number of input characters (i.e. input from STDIN should terminate with a Control-D). Be sure that everyone cleans-up" before terminating
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
