When does a Java Thread reach the 'Die' State

后端 未结 4 680
既然无缘
既然无缘 2020-11-30 05:04

In Java, Die is one of the states on a thread.

What causes a thread to enter this state?

4条回答
  •  既然无缘
    2020-11-30 05:32

    All Threads die either by returning from the call to the run method or by throwing an exception that propagates beyond the run method.

提交回复
热议问题