cron
seems
to add another entry point into your application, while Quartz
would
integrate into it. So you would be forced to deal with some inter-process communication if you wanted to pass some information to/from the process invoked from cron
.
In Quartz
you
simply (hehe) run multiple threads. cron是进程级别,Quartz是线程级别;如果任务之间有依赖、通信关系,那么cron将是一个大难题,而Quartz只需考虑线程之间如何调度的问题cron
is
platform dependent, Quartz
is
not. cron是依赖于unix平台的,而Quartz使跨平台的Quartz
may
allow you to reliably make sure a task is run at the given time or some time after if the server was down for some time. Pure cron
wouldn‘t
do it for you (unless you handle it manually).Quartz会保证即使服务重启,任务仍然会在指定的时间重新执行,而cron不会Quartz
has
a more flexible language of expressing occurences (when the tasks should be fired).Quarz支持更丰富的执行命令cron
approach. Quartz
might
be used with Terracotta following the scaling
out pattern (I haven‘t tried it, but I believe it‘s doable).原文地址:http://blog.csdn.net/moon_yang_bj/article/details/37956757