This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Author

Opening multiple client sockets in java

div ngo
Greenhorn

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

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

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: http://aspose.com/file-tools
 
subject: Opening multiple client sockets in java
 
Similar Threads
Interesting exception errors
How to Change the File Name for Each Uploaded Files to the Socket Server?
Can I get stream for uploaded file in struts 2?
How dose the loop impact the performance? How to measure?
Interface doubt