Multiple pipes collection
Multiple pipes can be defined in a collection.
Each pipe has its own participants (writers and readers), and an application can act as a reader from one pipe and a writer to another pipe. The writers and readers are numbered relative to the other writers and readers of the same pipe.
In the following figure, two pipes (Pipe A and Pipe B) and three applications are using these pipes.
Single writer, single reader, and multiple pipes example
Pipe A has two participants (one writer and one reader):
- Writer 1 (Application 1)
- Reader 1 (Application 2)
Pipe B has two participants (one writer and one reader):
- Writer 1 (Application 2)
- Reader 1 (Application 3)
Application 2 is a reader of Pipe A and a writer of Pipe B.
In the following figure, two pipes (Pipe A and Pipe B) and seven applications are using these pipes. Pipe A has five participants (two writers and three readers). Pipe B has three participants (one writer and two readers). The second reader of Pipe A is the writer of Pipe B.
Multiple writers, multiple readers, and multiple pipes example
Related topics