jQuery in Action, 2nd edition*
The moose likes Sockets and Internet Protocols and the fly likes Thread Pool Management in SocketServer. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Thread Pool Management in SocketServer." Watch "Thread Pool Management in SocketServer." New topic

Thread Pool Management in SocketServer.

Yuvraj Singh

Joined: Apr 30, 2002
Posts: 11
Hi All,
I have developed a Socket Server which initializes
some threads at the start-up..I need some help on:
1./How to spawn new threads with the increasing Concurrent request(one way is to increase pool size is in batch)
2./How to kill Idle threads?
3./How the incoming Concurrent Requests can be made to wait untill some threads get freed.
Is there open source code available for SocketServer having above functionality.
One more Question,Is it possible to make Windows NT Service of a Java Socket Server.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Thread Pool Management in SocketServer.