Meaningless Drivel is fun!
The moose likes Sockets and Internet Protocols and the fly likes Opening multiple client sockets in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Opening multiple client sockets in java" Watch "Opening multiple client sockets in java" New topic

Opening multiple client sockets in java

div ngo

Joined: Apr 01, 2011
Posts: 1
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

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

Any Idea is greatly appreciated.

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

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.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
I agree. Here's the link:
subject: Opening multiple client sockets in java
It's not a secret anymore!