本文介绍了检查线程是否正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习线程,我想知道是否有办法检查线程是否正常工作,就像这样。



I am learning threading and I was wondering if there was a way to check if a thread was working or not, something like this.

If thread1.working then
    thread2.join()
    thread2 = new thread(address of somemethod)
    thread2.start()
else
    thread1.join()
    thread1 = new thread(address of somemethod)
    thread1.start()
end if





我不是在寻找代码,只是关于它如何工作的资源。



I am not looking for code, just resources on how this would work.

推荐答案




这篇关于检查线程是否正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-26 04:36
查看更多