Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Timer & TimerTask versus Thread + sleep in Java

Current License: CC BY-SA 4.0

Post Revisions

15 events
when toggle format what by license comment
Oct 4, 2018 at 9:17 history edited Keshav CC BY-SA 4.0
Removed thanks.
Sep 13, 2018 at 4:01 answer added akhil_mittal timeline score: 9
Nov 20, 2014 at 3:24 answer added Ken timeline score: 2
Feb 6, 2014 at 19:45 answer added Stack Popper timeline score: 4
Oct 3, 2011 at 3:40 answer added Qandeel timeline score: 5
Mar 18, 2011 at 6:44 history edited Keshav CC BY-SA 2.5
Another important difference between Timer and Thread.sleep()
Sep 29, 2010 at 14:01 comment added スーパーファミコン Timer and TimerTask are still useful in JME environments where ExecutorService does not exist (since JME Java 1.3 based...).
Dec 19, 2009 at 0:49 comment added Justin Timer is not obsolete, and is preferred when only a single thread is needed. (java.sun.com/javase/6/docs/api/java/util/Timer.html)
Sep 21, 2009 at 8:45 vote accept Keshav
Sep 21, 2009 at 8:45 comment added Keshav Thanks for the tip, I decided to use ExecutorService :)
Sep 21, 2009 at 8:25 answer added Boris Pavlović timeline score: 4
Sep 21, 2009 at 8:02 answer added MartinStettner timeline score: 13
Sep 21, 2009 at 7:55 answer added Zed timeline score: 70
Sep 21, 2009 at 7:53 comment added skaffman Point of order: Timer and TimerTask are obsolete, and have effectively been replaced by ExecutorService, although your point still stands.
Sep 21, 2009 at 7:47 history asked Keshav CC BY-SA 2.5

AltStyle によって変換されたページ (->オリジナル) /