Setting Event Broker Priorities
To ensure the Event Broker executes as expected, you can increase its priority on systems running heavy tasks. Do this by setting the following registry entries.
[HKEY_LOCAL_MACHINE\SOFTWARE\Prediktor\Apis\ApisHive\ApisEventBroker]
"MainThreadPriority"="2"
"ExecutionThreadPriority"="2"
The supported values of these entries, are:
Priority | Meaning |
---|---|
1 | ABOVE_NORMAL: Priority 1 point above the priority class |
-1 | BELOW_NORMAL: Priority 1 point below the priority class |
2 | HIGHEST: Priority 2 points above the priority class |
-15 | IDLE : Base priority of 1 for IDLE_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, or HIGH_PRIORITY_CLASS processes, and a base priority of 16 for REALTIME_PRIORITY_CLASS processes |
-2 | LOWEST: Priority 2 points below the priority class |
0 | NORMAL: Normal priority for the priority class |
15 | TIME_CRITICAL: Base priority of 15 for IDLE_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, or HIGH_PRIORITY_CLASS processes, and a base priority of 31 for REALTIME_PRIORITY_CLASS processes |
The MainThreadPriority is the priority of the main-loop or event delegator thread of the Event Broker.
The ExecutionThreadPriority is the priority of the worker or execution threads of the Event Broker.