Process and Thread affinity setting

suggest change

Versions

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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents