03 2019 档案

摘要:上篇写到了ThreadPoolExecutor构造方法前4个参数int corePoolSize、int maximumPoolSize,、long keepAliveTime、TimeUnit unit与工作流程机制,现在来看看后3个参数BlockingQueue workQueue、Thread 阅读全文
posted @ 2019-03-15 15:29 aixw
摘要:Java有两个线程池类:ThreadPoolExecutor和ScheduledThreadPoolExecutor,继承AbstractExecutorService类,AbstractExecutorService类实现了ExecutorService接口。Java API提供了Executor 阅读全文
posted @ 2019-03-15 14:04 aixw 阅读(150) 评论(0) 推荐(0)