Thread Priority Step

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Use a Thread Priority step to adjust the operating system priority of a TestStand thread so the TestStand thread receives more or less CPU time than other threads.

Avoid starving important threads of CPU time by boosting the priority of another thread too high. For example, setting the priority of a thread to Time Critical can cause the user interface of an application to become unresponsive.

When you alter a thread priority, save the previous priority value and restore it when the changed thread no longer requires the altered priority value.

Configuring the Step

Use the Thread Priority Settings edit tab in the TestStand Sequence Editor and the Thread Priority Configuration dialog box in a TestStand User Interface to configure the Thread Priority step.

Step Properties

In addition to the common custom properties, the Thread Priority step type defines the following step properties:

  • Step.Operation—A value that specifies the operation for the step to perform. The valid values are 0 = Set Thread Priority and 1 = Get Thread Priority.
  • Step.SetPriorityExpr—The thread priority expression for the Set Thread Priority operation.
  • Step.GetPriorityExpr—The location to store the thread priority for the Get Thread Priority operation.

See Also

Synchronization Step Types

WAS THIS ARTICLE HELPFUL?

Not Helpful