View Single Post
  #7 (permalink)  
Old 05-06-2008, 03:20 PM
danielstoner's Avatar
danielstoner danielstoner is offline
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
You can make a thread wait on a "data stream" as long as the "data stream" read API is written in such a way that will make the thread that is trying to read to wait until data is available and then notifies it. An example is the sockets API. So yes, it is possible. But again you don't send data to a thread, you notify a thread waiting for your data that the data has become available.
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Reply With Quote