How to check if Thread finished execution

Posted by user295502 on Stack Overflow See other posts from Stack Overflow or by user295502
Published on 2010-05-05T13:15:18Z Indexed on 2010/05/05 13:18 UTC
Read the original article Hit count: 257

Filed under:
|
|

I have following problem:

I want to check (C#) if thread has finished execution, i.e. if the thread method returned. What I do now is call Thread.Join(1), but this gives 1 ms delay. Is there any way to simply check if thread finished. Inspecting Thread.ThreadState just seems too cumbersome.

© Stack Overflow or respective owner

Related posts about c#

Related posts about thread