Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for you developers out there

 
Khalid Bou-Rabee
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic