title: How do you get list of running threads in C#?
body: <p>I create dynamic threads in C# and I need to get the status of those running threads.</p>
  
  <pre><code>List&lt;string&gt;[] list;
  list = dbConnect.Select();
  
  for (int i = 0; i &lt; list[0].Count; i++)
  {
      Thread th = new Thread(() =&gt;{
          sendMessage(list[0]['1']);
          //calling callback function
      });
      th.Name = "SID"+i;
      th.Start();
  }
  
  for (int i = 0; i &lt; list[0].Count; i++)
  {
      // here how can i get list of running thread here.
  }
  </code></pre>
  
  <p>How can you get list of running threads?</p>