Join Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Blocks the calling thread until a thread terminates, while continuing to perform standard COM and SendMessage pumping.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public void Join()

Use this method to ensure a thread has terminated. The caller will block indefinitely if the thread does not terminate. If the thread has already terminated when Join is called, the method returns immediately.

This method changes the state of the calling thread to include ThreadState..::..WaitSleepJoin. You cannot invoke Join on a thread that is in the ThreadState..::..Unstarted state.

Show: