Given a thread that has completed some work (its status is Thread.State.TERMINATED), is there a way to figure out if Thread.run () / Runnable.run () completed the thread correctly or dropped the demand?
Afaik, the stream enters the TERMINATED state both when it exits the normal state and when metadata is thrown.
Someone suggested using UncaughtExceptionHandler. Given that a thread can have only one UncaughtExceptionHandler (except for the default value for all threads) and that the thread code can change the provided one, is it useful to use them?
source
share