摘要:
ThreadPoolExecutor机制 一、概述 1、ThreadPoolExecutor作为java.util.concurrent包对外提供基础实现,以内部线程池的形式对外提供管理任务执行,线程调度,线程池管理等等服务; 2、Executors方法提供的线程服务,都是通过参数设置来实现不同的线 阅读全文
posted @ 2016-11-16 21:10
无天666
阅读(2525)
评论(0)
推荐(1)
摘要:
根据需要创建新线程的对象。使用线程工厂就无需再手工编写对 new Thread 的调用了,从而允许应用程序使用特殊的线程子类、属性等等。 JDK中的介绍: An object that creates new threads on demand. Using thread factories rem 阅读全文
posted @ 2016-11-16 15:10
无天666
阅读(1551)
评论(0)
推荐(0)