How accurate is the task scheduling of a ScheduledThreadPoolExecutor
问题 I was reading ScheduledThreadPoolExecutor JavaDoc and came across the following thing: Delayed tasks execute no sooner than they are enabled, but without any real-time guarantees about when, after they are enabled, they will commence . Tasks scheduled for exactly the same execution time are enabled in first-in-first-out (FIFO) order of submission. So, if I write something like this: ScheduledExecutorService ses = Executors.newScheduledThreadPool(4); //uses ScheduledThreadPoolExecutor