線程池工作原理

線程池工作原理 線程池狀態的切換: 線程池關鍵類的uml圖: 線程池就是把任務提交和任務執行解耦。 首先看一下線程池的使用: public static void main(String args[]) throws InterruptedException { ExecutorService es = Executors.newFixedThreadPool(10);//1,創建線程池 es
相關文章
相關標籤/搜索