线程池和线程的选择

能用线程池就用线程池,线程池效率比线程高很多。

线程池处理线程的顺序不一定。

线程池不能手动关闭具体线程。

如果执行线程时间特别长,那手动创建线程,和放入线程池中没太大区别.

线程池非常适合做大量的小的运算。

 
There are two ways of constructing a software design.One is to make it so simple that there are obviously no deficiencies;the other is to make it so complicated that there are no obvious deficiencies.
原文地址:https://www.cnblogs.com/yuanjunqq/p/5736252.html