CPU Affinity Step Configuration Dialog Box
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
CPU Affinity Step Configuration Dialog Box
Select Configure CPU Affinity in the context menu for the CPU Affinity step to launch the Configure CPU Affinity dialog box from a TestStand User Interface . You can also click the Configure CPU Affinity button on the General tab of the Step Properties dialog box.
Use the Configure CPU Affinity dialog box to select an operation for the CPU Affinity step to perform. All expression controls for affinity mask represent the affinity mask as a numeric value where each bit of the value specifies a CPU. You can use the 0b prefix to specify a binary number. For example, a value of 15 ( 0b00001111 ) represents the CPUs in a quad-core system and a value of 10 ( 0b00001010 ) represents CPUs 2 and 4 in the quad-core system.
You can select from the following operations when you use the CPU Affinity step type:
- Get System Affinity —Gets the default system affinity mask.
- Get Process Affinity —Gets the current process affinity mask.
- Set Process Affinity —Sets the affinity mask for the current process.
- Get Thread Affinity —Gets the current thread affinity mask.
- Set Thread Affinity —Sets the affinity mask for the current thread.
Refer to Using TestStand on SMP Systems for more information about optimizing TestStand performance on symmetric multiprocessing (SMP) systems for multithreaded applications.