neo wrote:
>
> Hi ,
> I am trying to write a scheduler in java for a huge number of tasks.
> The Timer class says it does not like big resouce intensive tasks as
> it would load its thread and lead to bunching of the later scheduled
> ones.
>
> Which is the best way to implement this scheduler in java and keep it
> very accurate and scalable ????
Nice to hear from you, Neo...
If by "scheduler" you mean to start some tasks at time A, others at time B,
and so forth, you have the answer from Roedy and "bm".
OTOH if you need some tasks to wait for others to complete--however long it
may take--then take a look at:
http://pws.prserv.net/ad/programs/Pr...#TaskScheduler
It shows how to assign each task to a thread and define "rules" for when each
task may start. Yes, could use lots of memory, but maybe less than you
expect. However, it does appear to be fully scalable.
Hope this helps. Tony Dahlman