[Deploying Sakai] killing threads
hedrick at rutgers.edu
Wed Oct 28 19:20:36 PDT 2009
>> however Thread.stop() is considered unsafe:
> and even Sun's own disclaimer:
> which is why I've never even attempted it...
I read that. However the alternative is to leave the thread in the
loop. The inconsistency is still there. In addition, the looping
thread could have some critical data structure locked. In that case
the JVM (or perhaps one user or one test, etc) could be unusable. I've
never actually seen that in one of these looping situations. There's
no really safe alternative other than restarting the JVM, and even
that could leave the database in an inconsistent state. You pays your
money and takes your choice.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the production