Sets which processors the associated thread is allowed to be scheduled to run on. Each processor is represented as a bit: bit 0 is processor one, bit 1 is processor two, etc. For example, the value 1 means run on processor one, 2 means run on processor two, 3 means run on processor one or two.
[Visual Basic] Property ProcessorAffinity As Integer [C#] int ProcessorAffinity {set;} [C++] public: __property void set_ProcessorAffinity(int); [JScript] public function set ProcessorAffinity(int);
ProcessThread Class | ProcessThread Members | System.Diagnostics Namespace