[concurrency-interest] ScheduledThreadPoolExecutor schdeuling problem ?

Hanson Char hanson.char at gmail.com
Sat Dec 29 17:40:09 EST 2007


(I refer to JDK 6+). It seems a scheduled event via

  ScheduledThreadPoolExecutor.schedule(Runnable command, long delay,
TimeUnit unit)

may occur before the target time.  For example, if an event is
scheduled to occur 1000ms from now.  The event could actually get
triggered after 990ms ie 10 ms less than the specified delay.

Is this a known issue ?  Shouldn't the event be delayed for at least
the specified delay time ?

Hanson Char

Original discussion:

    http://sourceforge.net/tracker/index.php?func=detail&aid=1860222&group_id=111957&atid=660863


More information about the Concurrency-interest mailing list