Is it possible to stop corrupt threads?

From: Morten Jensen (morten_at_somewhere.in.dk)
Date: 04/30/04


Date: Fri, 30 Apr 2004 11:19:10 +0200

Hello,

We are writing a big program with dozens of threads and there is constantly
a danger that a programming error will result in an unforseen deadlock. If
this occurs we would like to just kill the deadlocked threads, write out an
error message and restart them if possible. For some reason even the
deprecated stop method can't kill threads that are in a deadlock. Is there
anything other than System.exit() that can do this?

Thanks

Morten



Relevant Pages

  • Re: Is it possible to stop corrupt threads?
    ... > a danger that a programming error will result in an unforseen deadlock. ... > deprecated stop method can't kill threads that are in a deadlock. ... Except writing your stuff so that it *doesn't* deadlock. ...
    (comp.lang.java.programmer)
  • Re: Is it possible to stop corrupt threads?
    ... > constantly a danger that a programming error will result in an unforseen ... > deadlock. ... you can do is exitand restart the program. ...
    (comp.lang.java.programmer)