File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening multiple client sockets in java

 
div ngo
Greenhorn
Posts: 1
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic