I just want to know when the below scheduled job will execute.
schedule(new changeTimer(), 50000,3600*6* 1000);
What am unstanding is its running for every 6 hrs with a delay of 50 sec.
correct me if am wrong.
At wat time it will start to execute?
Thanks in advance.
Looks like you are correct.
This should be your method of java.util.Timer:
public void schedule(TimerTask task,
task - task to be scheduled.
delay - delay in milliseconds before task is to be executed.
period - time in milliseconds between successive task executions.
When you work with time classes,
play with system clock on your computer
to see if you have scheduled it right :)
A little help here!!!
i have schedule five timertask on a timer to run after 10 seconds
but it doesn't run in exact order
first time 1 2 4 5 3
second 2 5 4 3 1
What has that got to do with this thread?
Perhaps it might be a good idea to start your own thread for your own question. Don't forget to actually say what you regard as the "exact order". Your code might be good, too, since if what you are seeing is not what you expect then that's because your code is not doing what you thought it would.