摘要: 线程池的实现 ThreadPoolExecutor类实现了ExecutorService接口和Executor接口,可以设置线程池corePoolSize,最大线程池大小,AliveTime,拒绝策略等。常用构造方法: ThreadPoolExecutor(int corePoolSize, int 阅读全文
posted @ 2018-08-16 10:23 befmain 阅读(4908) 评论(0) 推荐(0)