...
- If
ThreadDeathis left uncaught, it allows the execution of afinallyblock which performs the usual cleanup operations. Even then, use of theThread.stop()method is highly inadvisable whenThreadDeathis left uncaught by in the target thread, primarily because of two reasons. First, the target thread cannot be forcefully stopped because an arbitrary thread can may catch the thrownThreadDeathexception and simply choose to ignore it. Second, abruptly stopping a thread results in the release of all the locks that it has acquired, violating the guarantees provided by the critical sections. Moreover, the objects end up in an inconsistent state, non-deterministic behavior being a typical outcome.
...