java - Different Timer object for new Task? -
i use
timer.schedule(new doreassignement(), delay, controlinterval);
and want add
timer.scheduleatfixedrate(fetchmail, gettomorrowmorning4am(), fonce_per_day);
should use different timer object new task or shouldnt ? in advance.
edit: tasks be(and should be) executed @ same time, dont want each of them delay or wait.
you can schedule multiple tasks on timer. each task run same timer thread though, tasks should short. if they're not, can timer.
Comments
Post a Comment