The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How can I create a thread pool as in Web,App server

Posted by Muthu kumaran on July 28, 2001 at 12:40 PM

[which means if request is greater than the pool size ,it has to be wait in queue,and released when any request in-line is served]

The problem with thread object is ,it can be called start() only once,if you try to call again ,it will through illegal state exception.So it is not possible to put all the thread object into stack and reuse.

If you put runnable object into stack and manually call run(),there is no concurrent action.

Do any one help me out to create thread pool as similar as in web,app servers.

Thank you,
Muthu kumaran
muthu.kumaran@converge.com




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us