question archive Write C programs with source code in files PipeC
Subject:Computer SciencePrice: Bought3
Write C programs with source code in files PipeC.c, PipeR.c, PipeW1.c, and PipeW2.c, that work as follows:
- creates a pipe
- creates a child process and it should get executable code of PipeW1.c; call it Process B,
- creates a child process and it should get executable code of PipeW2.c; call it Process C,
- creates a child process and it should get executable code of PipeR; call it Process D,
- and then Process A terminates.
In this assignment, only system calls you are allowed to use are fork, exit, read, write, close, pipe, and any of exec system calls, and any means of displaying on the terminal. In particular do not use system calls dup or dup2, nor shared memory or semaphores.