Giriş
Açıklaması şöyle.
Açıklaması şöyle.
PipedOutputStream/PipedInputStream pair, which is essentially a circular buffer with constant size. One thread can write to PipedOutputStream, and would be blocked, if the buffer is full. In a similar way, another thread could read from PipedInputStream, and would be blocked, if the buffer is empty.Açıklaması şöyle.
This is much like a producer-consumer concept. A piped output stream can be connected to a piped input stream to create a communications pipe. The piped output stream is the sending end of the pipe. Typically, data is written to a PipedOutputStream object by one thread and data is read from the connected PipedInputStream by some other thread.
Hiç yorum yok:
Yorum Gönder