FixedThreadPool和CachedThreadPool 的a區別

正文 CachedThreadPool CachedThreadPool 是經過 java.util.concurrent.Executors 建立的 ThreadPoolExecutor 實例。這個實例會根據須要,在線程可用時,重用以前構造好的池中線程。這個線程池在執行 大量短生命週期的異步任務時(many short-lived asynchronous task),能夠顯著提升程序性能。調用
相關文章
相關標籤/搜索