Peter Donald wrote:
> On Wed, 27 Feb 2002 02:46, Emperor wrote:
>
>>My manager block needs long living threads (two or three, in this case),
>>should I create java.lang.Thread instances or retrieve them using the
>>ThreadManager.getDefaultPool().execute() method, or should I create a
>>thread pool?
>>
>
> Up to you. I think I would create them manually if you are only creating2-3
Also keep in mind that ThreadManagers allow you to change the policy of
thread pools easily. For instance, if you want 2 threads per processor,
the ThreadManager has something that automatically figures that out
(using SystemUtil of course).
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>