newCachedThreadPool是什么?

答案解析

newCachedThreadPool是弹性线程池,线程数无限制,适合大量短任务。空闲线程60秒后回收,易导致线程数过多需谨慎使用。