[lug] named pipe missunderstanding

Lori Reed lorireed at lightning-rose.com
Wed Feb 2 07:47:21 MST 2011


On 02/01/2011 02:27 PM, Jason Davis wrote:

> Howdy,
>   I think I have a missunderstanding about named pipes. Im using them
> for IPC and Im losing data.
> Here is the code I used:
> http://stackoverflow.com/questions/4867780/linux-named-pipes-losing-data
>
> Any ideas why I could be losing data?

Okay, Java is not my forte, but this is what I think is going on.

Pipes are not files, and you're using files, not pipes.

Pipes in Java (PipedOutputStream and PipedInputStream classes) are for 
communication between threads running in the same JVM, not for IPC.

http://tutorials.jenkov.com/java-io/pipes.html
http://www.velocityreviews.com/forums/t151368-ipc-in-java.html

Lori



More information about the LUG mailing list