What does Thread.Join() do?

liptonIcedTea

Well-known member
Joined
Jan 18, 2007
Messages
89
Programming Experience
1-3
I don't get it - the definition is that it "blocks the calling thread until a thread terminates"?

Does that mean it's kind of like a halt command where it'll sit and wait until the thread which it has put the join() on finish before it keeps going?

If so, it seems like a very strange name for this function.
 
It also does this:
This method changes the state of the calling thread to include ThreadState.WaitSleepJoin.
 
If so, it seems like a very strange name for this function.
It's not a name that Microsoft have invented. It's standard programming terminology for the task it performs. Exactly where and when the name comes from I don't know but it's been around a lot longer than .NET.
 
Back
Top