Thursday, November 09, 2006

Drawbacks of TimerTask: "Delayed and Periodic Tasks The Timer facility manages the execution of deferred ('run this task in 100 ms') and periodic ('run this task every 10 ms') tasks. However, Timer has some drawbacks, and ScheduledThreadPoolExecutor should be thought of as its replacement.[1] You can construct a ScheduledThreadPoolExecutor through its constructor or through the newScheduledThreadPool factory. [1]"

Enter your Comments