T
tkonrath
Hi.
I have a problem according to the TimerTask - functionality of Java
1.4.2.
I have two timer-tasks which I want to start at the same time each day
(e.g. at 1 a.m.) in my web-application. I configured both well. I used
the scheduleAtFixedRate method to from the Timer class, because I must
be sure that these tasks are not running during the day when a lot of
users are online. So using the method schedule is not possible for me.
I have recognized that the timer tasks are not running parallel. They
are called like step by step.
So may question is, why are they doing so? I have not found any
information about this behaviour in the Internet.
Is it possible to execute timer tasks parallel using
scheduleAtFixedRate or is it just impossible?
Thanks for any hints.
cu,
Tom
I have a problem according to the TimerTask - functionality of Java
1.4.2.
I have two timer-tasks which I want to start at the same time each day
(e.g. at 1 a.m.) in my web-application. I configured both well. I used
the scheduleAtFixedRate method to from the Timer class, because I must
be sure that these tasks are not running during the day when a lot of
users are online. So using the method schedule is not possible for me.
I have recognized that the timer tasks are not running parallel. They
are called like step by step.
So may question is, why are they doing so? I have not found any
information about this behaviour in the Internet.
Is it possible to execute timer tasks parallel using
scheduleAtFixedRate or is it just impossible?
Thanks for any hints.
cu,
Tom