摘要: JDK 1.5开始提供ScheduledThreadPoolExecutor类,ScheduledThreadPoolExecutor类继承ThreadPoolExecutor类重用线程池实现了任务的周期性调度功能。在JDK 1.5之前,实现任务的周期性调度主要使用的是Timer类和TimerTas 阅读全文
posted @ 2022-10-12 14:58 冰河团队 阅读(583) 评论(0) 推荐(2) 编辑