can i set two different timertasks to one timer

i want to set two different timertasks at different frequency in one timer object,the two different timertasks operate the same database,can i use the schedule method twice,will it be thread safe? thanks~
[211 byte] By [ethana] at [2007-11-27 1:53:14]
# 1
Yes, and yes (As long as the timer tasks aren't accessed by other threads). One Timer object = one thread. So you will have two timertasks sharing one thread.
Caffeine0001a at 2007-7-12 1:23:10 > top of Java-index,Core,Core APIs...
# 2
Thanks,your infomation is very helpful~~~
ethana at 2007-7-12 1:23:10 > top of Java-index,Core,Core APIs...