A pipe provides only one-way communication.
If parent and/or child will read AND write, then 2 pipes are needed.
If a process writes to the 'write' end of a pipe and then reads from the 'read' end of the same pipe, it could read its own data.
A pipe provides only one-way communication.
If parent and/or child will read AND write, then 2 pipes are needed.
If a process writes to the 'write' end of a pipe and then reads from the 'read' end of the same pipe, it could read its own data.