D J
D J

Reputation: 7028

Threadpool also uses a blocked thread to execute a new task from queue?

Sorry if question sounds so simple.

But I want to know that a thread pool only uses the finished threads to pick up new tasks or it can use a blocked thread also?

Thanks

Upvotes: 0

Views: 64

Answers (1)

Scott Chamberlain
Scott Chamberlain

Reputation: 127543

Blocked threads are blocked. Nothing can use them untill they become unblocked and return to the pool.

Upvotes: 2

Related Questions