Suspending threads by ThreadPoolExecutor

M

Maciej

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
 
T

Thomas Hawtin

Maciej said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top