Set Thread Affinity Operation - CPU Affinity Edit Tab
- Updated2025-07-21
- 1 minute(s) read
Set Thread Affinity Operation - CPU Affinity Edit Tab
Set Thread Affinity Operation
Use the Set Thread Affinity operation to modify the current thread affinity mask. This affinity mask represents the set of CPUs on which the thread is allowed to run. When you set the thread affinity for a sequence, save the previous affinity in the Setup step group and restore the affinity in the Cleanup step group. Select the Set Thread Affinity option on the CPU Affinity edit tab to display the Set Thread Affinity operation settings.
The Set Thread Affinity operation contains the following option:
-
New Thread Affinity
—A numeric value expression that indicates the new affinity mask for the thread. The new thread affinity mask must be a subset of the process affinity mask.
Note If you modify the process affinity mask after setting the thread affinity, the thread affinity is reset to match the process affinity. If you are modifying both the process affinity mask and the thread affinity mask, modify the process affinity mask first, then modify the thread affinity mask.