Commit d4aec689 authored by afreyssin's avatar afreyssin
Browse files

Allows to configure the thread priority of Engine through Engine.threadPriority property.

parent 32365b4e
......@@ -733,6 +733,8 @@ class Engine implements Runnable, MessageConsumer, EngineMBean {
if (isRunning) return;
thread = new EngineThread(this);
int priority = AgentServer.getInteger("Engine.threadPriority", Thread.MAX_PRIORITY).intValue();
thread.setPriority(priority);
thread.setDaemon(false);
logmon.log(BasicLevel.DEBUG, getName() + " starting.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment