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?
this is my code
UCI UCIMain = new UCI(); Thread UCIThread = new Thread(new ThreadStart(UCIMain.main)); UCIThread.Priority = ThreadPriority.BelowNormal; UCIThread.Start(); and for sure the class UCI has a member function named main. I want to set this thread in 1st processor for example