JAVA多線程Future異步返回實現

Future基本知識不作介紹,主要是簡單的實現方式java 1.建立線程池 FixedThreadPool 與 CachedThreadPool 特性對比緩存 特性 FixedThreadPool CachedThreadPool 重用 FixedThreadPool 與 CacheThreadPool差很少,也是能 reuse 就用,但不能隨時建新的線程 緩存型池子,先查看池中有沒有之前創建的線
相關文章
相關標籤/搜索