可以通過呼叫 Executors 類的 static newFixedThreadPool() 方法獲得一個固定執行緒池。 語法 ExecutorService fixedPool = Executors.newFixedThreadPool(2);.
確定! 回上一頁