Java并发--ScheduledThreadPoolExecutor

ScheduledThreadPoolExecutor ScheduledThreadPoolExecutor继承自ThreadPoolExecutor。它主要用来在给定的延迟以后运行任务,或者按期执行任务。ScheduledThreadPoolExecutor的功能与Timer相似,但ScheduledThreadPoolExecutor功能更强大、更灵活。web Timer对应的是单个后台线程
相关文章
相关标签/搜索