Pipes in Java IO provide the ability for two threads running in the same JVM. Since such channels are a common source or recipient of data.
This is useful if you have two long Thread threads, one for data creation and one for use.
Romain hippeau
source share