会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoxi666
Master programmers think of systems as stories to be told rather than programs to be written.
博客园
首页
新随笔
联系
订阅
管理
2019年4月28日
理解ScheduledExecutorService中scheduleAtFixedRate和scheduleWithFixedDelay的区别
摘要: scheduleAtFixedRate 每间隔一段时间执行,分为两种情况: 1. 当前任务执行时间小于间隔时间,每次到点即执行; 2. 当前任务执行时间大于等于间隔时间,任务执行后立即执行下一次任务。相当于连续执行了。 scheduleWithFixedDelay 每当上次任务执行完毕后,间隔一段时
阅读全文
posted @ 2019-04-28 14:40 xiaoxi666
阅读(17377)
评论(0)
推荐(2)
公告
TOP