原文:The difference between scheduleAtFixedRate and scheduleWithFixedDelay in JAVA

Recently, due to the project needs,I haveto usemultithread technology in JAVA. Luckly, a helpful multithread technology was created way back in JDK . ,the ScheduledExecutorService interface. It was d ...

2013-04-25 13:13 1 3753 推荐指数:

查看详情

线程池中的scheduleAtFixedRate scheduleWithFixedDelay区别

在调度线程池中有这么两个方法,到底什么区别呢,且看我解释: scheduleAtFixedRate :这个是按照固定的时间来执行,简单来说:到点执行scheduleWithFixedDelay:这个呢,是等上一个任务结束后,在等固定的时间,然后执行。简单来说:执行完上一个任务后再执行 ...

Wed Oct 29 16:58:00 CST 2014 0 2413
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM