Thanks Henry & Steve for the response..
Steve's question
what kind of data do you want to transport?
I am reading Objects from a data source and then passing them onto the Queue / Pipe.
I would now try out the ConcurrentLinkedQueue & see how it goes.
was playing around ... with the PipedStream..
Faced the Scenario which Henry had mentioned
.
2 Producer threads are using the same PipedOutputStream reference but the pipe is broken if any one of the Producer terminates before the other
So the Producer thread which finished first would have to be running until the Producer 2 thread too has finished.
One more question.
If i go ahead with the PipedOutputStream, can data over 1MB be stored in it until it is read by the Consumer ?