This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening multiple client sockets in java

 
div ngo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

1) Open multiple sockets the java server.
2) send input stream and recieve output stream response indiviually for each of the socket
3) and all these should done parallely


Tried serveral option

1)
This does sequentially processing even thought the ThreadPooledExecutor also claims to do it parallely.

Any Idea is greatly appreciated.

Thanks
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and welcome to the Javaranch.

Please UseCodeTags when posting code. It will highlight your code making it much easier to read. I've added them for you since you're new.

What you have done now is creating a single task that does 3 things instead of 3 tasks that do one thing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!