Topic: Operating Systems / IPC
In Inter-process communication, ordinary pipes
- A. Are Bidirectional.
- B. Are unidirectional such that for two-way communication, two pipes must be used with each pipe sending data in different direction
- C. Are unidirectional and two-way communication is impossible to implement
- D. Can be used for communication between two different machines.
Answer: B. Are unidirectional such that for two-way communication, two pipes must be used with each pipe sending data in different direction
Explanation: Ordinary pipes (also known as anonymous pipes in POSIX systems) are strictly unidirectional (half-duplex) communication channels allowing a byte stream to flow from a writer process to a reader process. To achieve bidirectional (two-way) communication, two separate pipes must be created, one for each direction of data flow.