Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using threads in socketchannel

 
sunil sahoo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi In single threaded socket channel programming.
If my selector is busy in reading or writing the data then socket connection takes more time means accepting a new socket takes more time.
I want to handle accepting client in 1 thread and read/write operations in another thread.
So How Can I achieve this
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This and this article will help you understand the concepts.
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!