This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Saloon Keeper
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