title: Get thread information in Xamarin PCL
body: <p>I start some parallel tasks from a PCL with</p>
  
  <p><code>Parallel.Invoke(() =&gt; ExecuteTaskAAsync(), () =&gt; ExecuteTaskBAsync());</code></p>
  
  <p>Now I want to know on which thread these tasks are running.</p>
  
  <p><code>Thread.CurrentThread.ManagedThreadId</code> seems to be only available in the iOS 
  and Droid project but not in the PCL or UWP project. What are my possibilities? If I would use <code>DependencyService</code> I also won't know on which thread TaskA is running, because there is not relationship between the started task and <code>DependencyService</code>.</p>
  
  <p>How can I get thread information (id, name, ...) in a PCL?</p>
  
  <p>When you set a breakpoint you can get into the <a href="https://msdn.microsoft.com/en-us/library/dd998369.aspx" rel="nofollow">Tasks Window</a> and get some more information. Also you have a drop down on the top to select a process, choose between different threads and get some info about the stack frame. So one should be able to also get this information in code?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Seems that the informations in the Tasks Window is only available when running on UWP.</p>