Process and Thread affinity setting
suggest changeVersions
Process and thread affinity on this page applies to .NET Framework 3.0 through 4.6.2. ProcessorAffinity also exists in earlier Framework versions.
Parameters
| Parameter | Details |
|---|---|
| affinity | Integer that describes the set of processors on which the process is allowed to run. On an 8-processor system, to run only on processors 3 and 4, use affinity 00001100, which equals 12. |
Remarks
The processor affinity of a thread is the set of processors it has a relationship to. In other words, those it can be scheduled to run on.
Processor affinity represents each processor as a bit. Bit 0 represents processor one, bit 1 represents processor two, and so on.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents