线程池
线程池:一种成熟的线程使用模式。 实现有领导者与跟随者模式,半同步半异步模式。
线程池的伸缩性对性能有较大的影响。
- 创建太多线程,将会浪费一定的资源,有些线程未被充分使用。
- 销毁太多线程,将导致之后浪费时间再次创建它们。
- 创建线程太慢,将会导致长时间的等待,性能变差。
- 销毁线程太慢,导致其它线程资源饥饿。
单词 | Thread pool |
释义 |
Thread pool
中文百科
线程池线程池:一种成熟的线程使用模式。 实现有领导者与跟随者模式,半同步半异步模式。 线程池的伸缩性对性能有较大的影响。
英语百科
Thread pool 线程池![]() In computer programming, a thread pool pattern (also replicated workers or worker-crew model) consists of a number m of threads, created to perform a number n of tasks concurrently. Typically m is not equal to n; instead, the number of threads is tuned to the computing resources available to handle tasks in parallel (processors, cores, memory) while the number of tasks depends on the problem and may not be known upfront. |
随便看 |
|
英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。