SequenceCallModule.CPUAffinityForNewThreadOption

Syntax

SequenceCallModule.CPUAffinityForNewThreadOption

Data Type

CPUAffinityForNewThreadOptions

Use the following constants with this data type:

  • CPUAffinityForNewThreadOption_UseAffinityOfCaller –(Value: 1) Specifies to use the CPU affinity of the calling sequence as the CPU affinity of the new thread.
  • CPUAffinityForNewThreadOption_UseAllCPUs –(Value: 2) Specifies to use all CPUs available to the process as the CPU affinity of the new thread.
  • CPUAffinityForNewThreadOption_UseCustomAffinity –(Value: 3) Specifies to use an expression to determine the CPU affinity of the new thread.
  • CPUAffinityForNewThreadOption_UseStationOption –(Value: 0) Specifies to use the StationOptions.DefaultCPUAffinityForThreadsEx property as the CPU affinity of the new thread.

Purpose

Specifies the CPUs on which the new thread executes.

Remarks

The value this property specifies applies only if the value of the SequenceCallModule.MultithreadingAndRemoteExecOption property is SeqCallMultithread_NewThread or SeqCallMultithread_NewExecution .

You can optimize TestStand performance on symmetric multiprocessing (SMP) systems for multithreaded applications.

See Also

SeqCallMultithreadOptions

SequenceCallModule.CustomCPUAffinityForNewThread

SequenceCallModule.MultithreadingAndRemoteExecOption

StationOptions.DefaultCPUAffinityForThreadsEx

Using TestStand on SMP Systems