Here's my scenario: I have one
thread handling a native process and inputting data into a piped stream. Another thread reads the input from the other side of the piped stream. I connected an Object Output Stream to my Piped stream to send Vectors of Doubles through the pipe. My program will refuse the process the data as it goes through the pipe, it will instead wait for the writing thread to finish it's input into the stream then will take all the data in at once.
I've tried sharing the data (it's on the same system) but for some reason the writing thread will retain a lock on the Vector the entire time (it writes to it in a long loop).
Is there a work around?
thanks,
Khalid