开发者

is it possible my threads are not being killed when the server is killed

A quartz scheduler is being used in an Application I am working on. A process开发者_StackOverflow中文版 that runs using the quartz scheduler spawns new threads. I was wondering if it is possible for these threads to continue living after the server is killed?


That depends on whether the threads were told to be daemon threads or not (Quartz defaults to not). The JVM will only shutdown when all the remaining active threads are daemon threads.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜