newFixedThreadPool (5); for (int i = 0; i < 100; i++) { threadPool.execute(() -> { if (threadPool.isShutdown()) { System.out.println("Pool is terminating.
確定! 回上一頁