JDK1.5 線程池

    Executors類主要方法: a.       static ExecutorService newCachedThreadPool() 產生一個ExecutorService對象,這個對象帶有一個線程池,線程池的大小會根據需要調整,線程執行完任務後返回線程池,供執行下一次任務使用 b.       static ExecutorService newFixedThreadPool(in
相關文章
相關標籤/搜索