![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
文章平均质量分 90
iteye_3471
这个作者很懒,什么都没留下…
展开
-
java并发编程——Executors
转载:http://blog.csdn.net/hudashi/article/details/7012204 java.util.concurrent类 Executorsjava.lang.Object 继承者 java.util.concurrent.Executors此类是个工具类,它提供对Executor、ExecutorService、ScheduledExecutorS...原创 2013-10-17 15:26:41 · 91 阅读 · 0 评论 -
ExecutorService生命周期的方法
转载:http://victorzhzh.iteye.com/blog/1010359 ExecutorService接口继承了Executor接口,定义了一些生命周期的方法 public interface ExecutorService extends Executor { void shutdown(); List<Runnable> shutdownNow();...原创 2014-06-26 11:13:29 · 84 阅读 · 0 评论 -
ExecutorService线程池
转载:http://blog.sina.com.cn/s/blog_6151984a0100krj8.html ExecutorService 建立多线程的步骤: 1。定义线程类 class Handler implements Runnable{} 2。建立ExecutorService线程池 ExecutorService executorService = Exe...原创 2014-06-26 11:30:58 · 79 阅读 · 0 评论