You can take a look at "Processor Affinity".
You can use the System.Diagnostics namespace to make a process run on a specific processor. The next line will change the current proximity of the process to processors 1 and 2
System.Diagnostics.Process.GetCurrentProcess().ProcessorAffinity = (System.IntPtr)3;
The Process.ProcessorAffinity property gets or sets the processors on which you can plan to start threads in this process.
The following table shows the selection of ProcessorAffinity values ββfor a dual-processor system.
Value Description 0 Not allowed 1 Use processor 1 2 Use processor 2 3 Use both processors 1 and 2
For more information, go to the following MSDN link β http://msdn.microsoft.com/en-us/library/system.diagnostics.process.processoraffinity.aspx
source share