JAVA中的Executors框架

//單線程池 Executors.newSingleThreadExecutor(); //固定線程池 Executors.newFixedThreadPool(1); //創建一個無限大的線程,最大線程數不限制,一般用於定時任務。 Executors.newScheduledThreadPool(1); //隊列策略爲SynchronousQueue()的一種線程池。 Executors.new
相關文章
相關標籤/搜索