Suspending threads by ThreadPoolExecutor  
Author Message
Maciej





PostPosted: 2006-10-27 21:28:00 Top

java-programmer, Suspending threads by ThreadPoolExecutor Hi all,

Does ThreadPoolExecutor may suspend idle threads ?
I wonder wether suspended threads eat less resources than active ?

I imagine the solution when ThreadPoolExecutore suspends each idle
threat after idleness of 60 seconds and after next 60 seconds of being
suspend the thread got killed ?

Is it reasonable ?

Regards,

Maciej

 
Thomas Hawtin





PostPosted: 2006-10-27 22:08:00 Top

java-programmer >> Suspending threads by ThreadPoolExecutor Maciej wrote:
>
> Does ThreadPoolExecutor may suspend idle threads ?
> I wonder wether suspended threads eat less resources than active ?

If the thread is idle, what would the point of suspend be?
Thread.suspend is deprecated for very good reason.

Tom Hawtin