StationOptions.DefaultCPUAffinityForThreads

Syntax

StationOptions.DefaultCPUAffinityForThreads

Data Type

Long

Purpose

Note This property is obsolete. Use the StationOptions.DefaultCPUAffinityForThreadsEx property instead. Getting this property on a 64-bit instance of the TestStand Engine results in an error. Setting this property on 32-bit architectures does not result in an error, but only the first 32 CPUs can be specified.

Remarks

Specifies which CPUs to use for threads TestStand creates and the user interface thread.

This property is a number in which each bit represents a CPU. The lowest-order bit represents the first CPU. For example, a value of 12 , which is 1100 in binary, represents CPUs 3 and 4 on a quad-core computer. A value of -1 specifies to use all CPUs available to the process.

TestStand does not update the CPU affinity of threads for currently executing sequences when you change this property.

Refer to Using TestStand on SMP Systems for more information about optimizing TestStand performance on symmetric multiprocessing (SMP) systems for multithreaded applications.

See Also

SequenceCallModule.CPUAffinityForNewThreadOption

Using TestStand on SMP Systems