CachedThreadPool与FixedThreadPool

1.一个线程实例加入CachedThreadPool时,若是该线程实例不存在CachedThreadPool,则建立一个,CachedThreadPool中线程实例默认超时时间为60s,超过这个时间,线程实例中止并被移出CachedThreadPool,适用于生存期短、异步的线程任务。并发 2.FixedThreadPool中最多只有固定数目线程存在,一个线程实例请求加入FixedThreadPo
相关文章
相关标签/搜索