File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Question for you developers out there Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Question for you developers out there" Watch "Question for you developers out there" New topic
Author

Question for you developers out there

Khalid Bou-Rabee
Ranch Hand

Joined: Jul 12, 2000
Posts: 54
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


\\ //<BR>~\// irucidal~
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question for you developers out there