On Fri, 15 Sep 2000, Joi Ellis wrote:

> Use a thread to read from the pipes.  The thread can block without 
> disturbing the flow of the rest of the java program.
> 
> Unix pipes run sequentially as they do on windows.  Unix pipes send
> data as soon as the IO buffers are flushed if buffers are used, otherwise
> it is delivered right away, more or less.  
> 
> Without knowing more about P1 it's hard to say what exactly is possible.

I have this amazing ability to drop entire phrases from sentences!

The above should have read:

  "Unix pipes do not run sequentially as Windows pipes do."

P2 will not sit idle until P1 completes unless P1 takes extra steps to
cause that behavior itself.  Generally speaking P2 will see data as soon
as P1 flushes its output buffers (if using buffered I/O) or as soon as P1
sends a newline.

More or less.  



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to