File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes create a new thread when when accept a new connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "create a new thread when when accept a new connection" Watch "create a new thread when when accept a new connection" New topic
Author

create a new thread when when accept a new connection

ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
I know RMI RMI creates a new thread: one thread handles the new connection, and the other goes back to accept a new connection. When the connection closes, its associated thread also exist.
In this regard, how do other protocols behaviour ? I know servlet can handling multiple threads if Ia m right.
Please clarify for me on this topic
Thanks in advance
Ruilin
ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
I feel it is fairly important to understand thread feature of a remote/network protocol for application design.
 
 
subject: create a new thread when when accept a new connection
 
Threads others viewed
HELP: Muilt-Threaded Server
CPU increases over time when program is idle
What does Data Server do&Data Client do?
Contradictory requirements
Slightly More Advanced RMI
developer file tools