java.util.Timer

The timer class is used to schedule events for the future which may repeatedly happen or may happen once. This class is thread safe and multiple threads may interact with this class. This class is not real-time and offers no gaurantee that tasks will execute on time. All instances of this class create a background thread.