简体   繁体   English

线程池还使用阻塞的线程从队列中执行新任务吗?

[英]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 谢谢

Blocked threads are blocked. 阻塞的线程被阻塞。 Nothing can use them untill they become unblocked and return to the pool. 在它们变得不受阻碍并返回到池中之前,没有任何人可以使用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM