摘要: java的线程状态 A thread state. A thread can be in one of the following states: NEWA thread that has not yet started is in this state. RUNNABLEA thread exec 阅读全文
posted @ 2016-02-22 23:50 YDDMAX 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/a352193394/article/details/39323427 阅读全文
posted @ 2016-02-22 23:41 YDDMAX 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 提供了工厂方法: Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory, and Callable classes defined in this pack 阅读全文
posted @ 2016-02-22 23:32 YDDMAX 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1、 2、ScheduledThreadPoolExecutor和Timer类似,可以设定一段时间delay之后或者按照一定的rate来执行任务。 3、ScheduledThreadPoolExecutor继承自ThreadPoolExecutor,但是ThreadPoolExecutor的一些AP 阅读全文
posted @ 2016-02-22 23:14 YDDMAX 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 可以参考:http://blog.csdn.net/linghu_java/article/details/17123057 一、AbstractThreadPoolExecutor 该类是个抽象类,里面实现了ExecutorService的一些默认的实现。 二、ThreadPoolExecutor 阅读全文
posted @ 2016-02-22 13:42 YDDMAX 阅读(173) 评论(0) 推荐(0) 编辑