File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -834,7 +834,7 @@ Wed Nov 13 13:40:43 CST 2019::pool-1-thread-5
834
834
835
835
** ` ScheduledThreadPoolExecutor ` 的执行主要分为两大部分:**
836
836
837
- 1 . 当调用 ` ScheduledThreadPoolExecutor ` 的 ** ` scheduleAtFixedRate() ` ** 方法或者** ` scheduleWirhFixedDelay ()` ** 方法时,会向 ` ScheduledThreadPoolExecutor ` 的 ** ` DelayQueue ` ** 添加一个实现了 ** ` RunnableScheduledFuture ` ** 接口的 ** ` ScheduledFutureTask ` ** 。
837
+ 1 . 当调用 ` ScheduledThreadPoolExecutor ` 的 ** ` scheduleAtFixedRate() ` ** 方法或者 ** ` scheduleWithFixedDelay ()` ** 方法时,会向 ` ScheduledThreadPoolExecutor ` 的 ** ` DelayQueue ` ** 添加一个实现了 ** ` RunnableScheduledFuture ` ** 接口的 ** ` ScheduledFutureTask ` ** 。
838
838
2 . 线程池中的线程从 ` DelayQueue ` 中获取 ` ScheduledFutureTask ` ,然后执行任务。
839
839
840
840
** ` ScheduledThreadPoolExecutor ` 为了实现周期性的执行任务,对 ` ThreadPoolExecutor ` 做了如下修改:**
You can’t perform that action at this time.
0 commit comments