Daily Archive: 2016-07-11

Concurrency: New Library Components (2)

5. ScheduledExecutor   ScheduledThreadPoolExecutor提供了多种执行任务的方式,schedule()用于延时执行一次任务,scheduleAtFixedRate()和scheduleWithFixedDelay()用于定时重复执行,它们具有类似的签名:

二者都会在initialDelay…
Read more