AppPriority - property of the Pm object
Description:
Value of the process priority of the running PROMOTIC application in Windows OS.
Values:
64 - low priority
32 - normal priority
128 - high priority
Note:
Property access
for read and write.
This property
is not functional in
Web panels
Example1:
Affecting of this property is applicable especially in the
PmaRoot.onAppStartBegin event.
Usually used when the application has to run fast and safely (data collection, archiving...) and other applications can run with a lower priority.
JavaScriptVBScriptSelect and copy to clipboard
Pm.AppPriority = 128;
// Writing into the property
Pm.AppPriority = 128
' Writing into the property
Example2:
JavaScriptVBScriptSelect and copy to clipboard
var nPriority = Pm.AppPriority;
// Reading from the property
Dim nPriority
nPriority = Pm.AppPriority
' Reading from the property