Question: Question 6 (20%) Write a short program that creates two children. Each child executes a function void DoChild(int writerd, int readed) and then exits immediately
Question 6 (20%) Write a short program that creates two children. Each child executes a function void DoChild(int writerd, int readed) and then exits immediately (you are not to write DoChild(), just assume it exists). The program is to create a pair of pipes whose file descriptors are passed to the children for two-way communication between the children. The parent does not exit until both children have terminated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
