betweenGo

How to schedule tasks or perform tasks repeatedly

by on Sep.29, 2005, under Java SE

There is an excellent tutorial at The Java Tutorial called
Using the Timer and TimerTask Classes.

It explains how to use a timer to schedule tasks or to perform tasks repeatedly. With the Timer and TimerTask classes you don’t have to create your own threads, it’s all done for you. Thank you Joshua Bloch for writing these classes.

On a side note, Joshua Bloch is one of the premier Java engineers. Recently he left Sun for Google. Gosh, that must have hurt Sun.

Share

Related posts:

  1. URL.equals and hashCode make blocking Internet connections
  2. Serial Version UID
  3. Sleep
  4. Enums in Java
  5. Accessing the class from a static method which the class owns

:

1 Comment for this entry

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!