title: Specify a special cpu for a thread in C#
body: <p>I have 2 threads. I want to tell one of them to run on first cpu and the second one on the second cpu for example in a machine with two cpu. how can I do that?</p>
  
  <p>this is my code</p>
  
  <pre><code>UCI UCIMain = new UCI();
  Thread UCIThread = new Thread(new ThreadStart(UCIMain.main));
  UCIThread.Priority = ThreadPriority.BelowNormal;
  UCIThread.Start();
  </code></pre>
  
  <p>and for sure the class <code>UCI</code> has a member function named <code>main</code>. I want to set this thread in 1st processor for example</p>