創建線程池的對象
ExecutorService pool = Executors.newFixedThreadPool(int ?nThread);
//執行 實現runnable接口實例代表的線程
pool.submit(new Runnable());
pool.shutdown();
創建線程池的對象
ExecutorService pool = Executors.newFixedThreadPool(int ?nThread);
//執行 實現runnable接口實例代表的線程
pool.submit(new Runnable());
pool.shutdown();