Can I use the java.util timers?
The timers provided by the java.util.Timer class provide the same accuracy as in J2SE 5.0. To benefit from a better determinism, it is recommended to use the new timer classes from the RTSJ: javax.realtime.OneShotTimer and javax.realtime.PeriodicTimer. These new timers are based on a more accurate clock and allow you to specify the real-time context (priority, deadline) for each computation task associated with a given timer.