In Java, how do you determine if a thread is running?

后端 未结 10 2189
-上瘾入骨i
-上瘾入骨i 2020-11-28 11:30

How do you determine if a thread is running?

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 12:15

    Have your thread notify some other thread when it’s finished. This way you’ll always know exactly what’s going on.

提交回复
热议问题