Thread Priority Step
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
Thread Priority Step
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.