What is the significance of Thread.Join in C#?

c#, multithreading

Solution

`Join()` is basically `while(thread.running){}`

{
  thread.start()
  stuff you want to do while the other thread is busy doing its own thing concurrently
  thread.join()
  you won't get here until thread has terminated.
} 

Problem

What is the significance of the Thread.Join method in C#? MSDN says that it blocks the calling thread until a thread terminates. Can anybody explain this with a simple example?

Original source