【发布时间】:2014-04-10 18:49:32
【问题描述】:
是什么导致了这个 RejectedExecutionException?
[Running, pool size = 40, active threads = 3, queued tasks = 20, completed tasks = 180]
线程池执行器:
new ThreadPoolExecutor(30, 40, 10, TimeUnit.MINUTES,
new ArrayBlockingQueue<Runnable>(20), threadFactory);
池大小为 40,只有 3 个线程处于活动状态,为什么不使用其余线程?
【问题讨论】:
标签: java multithreading exception