This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Blocking read call

 
bharath sina
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have this problem regarding socket programming. I have a server listening on 4 ports and a client connected to them. I have separate threads for each channel/port on both client and server. But I am facing a problem with blocking read call.What if I need to write to the socket while it is blocked on a read? Should I create another thread for the writing (which means I have to worry about deadlock/race conditions, right?) or can I somehow interrupt the thread, abort the blocked read command and write instead?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic