title: How to get the reference of TPL task's thread in C#?
body: <p>When I create a task as  </p>
  
  <pre><code>Task task = Task.Factory.StartNew(() =&gt; someMethod(args));
  </code></pre>
  
  <p>in C# 4.0+,  how can I get the reference of the thread(s) of this task?  </p>
  
  <p>Is it possible that the task is executed in the same thread that created the task or spawn more than one thread?  </p>
  
  <p>Update:<br>
  The reasons are:  </p>
  
  <ul>
  <li>I'd like to identify the task's thread in debugger (and attribute a name for it), etc.    </li>
  </ul>
  
  <p>Is created task executed always in separate thread from the one in which a task was created?<br>
  Is it one, zero or more than one thread?<br>
  Is it executed on a single and the same core?<br>
  It is important to know since, for example, I can put to sleep the main thread thinking that I am freezing the background worker  </p>
  
  <p>Update:<br>
  Useful answer:   </p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/8038572/2031316">Specifying a Thread's Name when using Task.StartNew</a>  </li>
  </ul>