title: Getting the thread ID from a thread
body: <p>In C# when debugging threads for example, you can see each thread's ID.</p>
  
  <p>I couldn't find a way to get that same thread, programmatically. I could not even get the ID of the current thread (in the properties of the <code>Thread.currentThread</code>).</p>
  
  <p>So, I wonder how does Visual Studio get the IDs of the threads, and is there a way to get the handle of the thread with id <code>2345</code>, for example?</p>