摘要:
代码:import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class thdd { public static void main(String[] args) { ExecutorService pool = Executors.newFixedThreadPool(3); // 创建实现了Runnable接口对象,Thread对象当然也实现了Runnable接口 for (int i = 0; i < 100000; ... 阅读全文
posted @ 2012-05-13 19:46 threads 阅读(407) 评论(0) 推荐(0)
浙公网安备 33010602011771号