Thread with a while loop, found running thread automatically stop after a few hours, also can not capture anomalies, what reason
CodePudding user response:
1, really is without exception to stop, that is the loop condition does not meet the 2, there is abnormal, you have a problem of exception handling or processing;
CodePudding user response:
Jump out of the while loop, want to catch exceptions will be thrown exception to the thread of execution, the executing thread, automatic stop running a few hours is not accurate, not sure what have done in the process of running operations, to a certain condition is completed,