Re: reuse a thread which is no longer "alive"
From: sayoyo (dontwantspam_at_yahoo.com)
Date: 02/26/04
- Next message: GianpieroP: "Re: JAVA ResultSet Problem?"
- Previous message: sayoyo: "Re: reuse a thread which is no longer "alive""
- In reply to: Kai Grossjohann: "Re: reuse a thread which is no longer "alive""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Feb 2004 15:40:03 -0500
Thanks you very much, and I will have a look on it:)
Sayoyo
"Kai Grossjohann" <kgrossjo@eu.uu.net> a écrit dans le message de
news:86eksime0y.fsf@slowfox.de.uu.net...
> "sayoyo" <dontwantspam@yahoo.com> writes:
>
> > Is there some way that we can reuse a thread by replacing the runnable
> > object of the thread? like a thread is not "alive" anymore, then we
remove
> > the runnable object(is it possible????) and then run it again.
>
> There is a util-concurrent Java package which provides a thread pool
> class. You hand a runnable to the thread pool, and it will look for
> an unoccupied thread to execute that runnable. When the runnable is
> done, the thread becomes available again.
>
> Google for "util-concurrent".
>
> Kai
- Next message: GianpieroP: "Re: JAVA ResultSet Problem?"
- Previous message: sayoyo: "Re: reuse a thread which is no longer "alive""
- In reply to: Kai Grossjohann: "Re: reuse a thread which is no longer "alive""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|