@@ -0,0 +1,458 @@
+import java.util.concurrent.ExecutorService;  %0Aimport java.util.concurrent.Executors; %0A%0Apublic class T10_ThreadPool implements Runnable %7B%0A%09public void run() %7B%0A%09%09for(int i=0; i%3C10; i++) %7B%0A%09%09%09System.out.println(Thread.currentThread().getName() + %22:%22 + i);%0A%09%09%7D%0A%09%7D%0A%0A%09public static void main(String %5B%5D args) %7B%0A%09%09ExecutorService pool = Executors.newFixedThreadPool(3);%0A%09%09for(int i=0; i%3C10; i++) %7B%0A%09%09%09pool.execute(new T10_ThreadPool());%0A%0A%09%09%7D%0A%09%09pool.shutdown();%0A%09%7D%0A%7D

add thread pool test