I have following problem:
I want to check (C#) if a thread has finished execution, i.e. if the thread method has returned. What I do now is call Thread.Join(1)
, but this gives a 1 ms delay. Is there any way to simply check if a thread has finished. Inspecting Thread.ThreadState
just seems too cumbersome.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…