多线程

专注于多线程的开发与研究

导航

2012年5月13日

摘要: 代码:import java.text.SimpleDateFormat;import java.util.*;import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;import java.util.concurrent.TimeUnit;public class thdd { public static void main(String[] args) { ScheduledExecutorService pool = Executors.new... 阅读全文

posted @ 2012-05-13 20:02 threads 阅读(365) 评论(0) 推荐(0)

摘要: 代码:import java.text.SimpleDateFormat;import java.util.*;import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;import java.util.concurrent.TimeUnit;public class thdd { public static void main(String[] args) { ScheduledExecutorService pool = Executors.new... 阅读全文

posted @ 2012-05-13 19:59 threads 阅读(475) 评论(0) 推荐(0)

摘要: 代码:import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class thdd { public static void main(String[] args) { ExecutorService pool = Executors.newCachedThreadPool(); // 创建实现了Runnable接口对象,Thread对象当然也实现了Runnable接口 for (int i = 0; i < 100; i++... 阅读全文

posted @ 2012-05-13 19:57 threads 阅读(343) 评论(0) 推荐(0)

摘要: 代码:import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class thdd { public static void main(String[] args) { ExecutorService pool = Executors.newSingleThreadExecutor(); // 创建实现了Runnable接口对象,Thread对象当然也实现了Runnable接口 for (int i = 0; i < 100;... 阅读全文

posted @ 2012-05-13 19:52 threads 阅读(233) 评论(0) 推荐(0)

摘要: 代码: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 阅读(406) 评论(0) 推荐(0)

联系Email:ha666@ha666.com