forked from I2P_Developers/i2p.i2p
Increase timer thread priority
This commit is contained in:
@ -118,6 +118,7 @@ public class SimpleTimer2 {
|
|||||||
// (new Exception("OWCH! DAMN! Wrong ThreadGroup `" + name +"', `" + rv.getName() + "'")).printStackTrace();
|
// (new Exception("OWCH! DAMN! Wrong ThreadGroup `" + name +"', `" + rv.getName() + "'")).printStackTrace();
|
||||||
// }
|
// }
|
||||||
rv.setDaemon(true);
|
rv.setDaemon(true);
|
||||||
|
rv.setPriority(Thread.NORM_PRIORITY + 1);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -341,7 +341,7 @@ public class JobQueue {
|
|||||||
public void startup() {
|
public void startup() {
|
||||||
_alive = true;
|
_alive = true;
|
||||||
I2PThread pumperThread = new I2PThread(_pumper, "Job Queue Pumper", true);
|
I2PThread pumperThread = new I2PThread(_pumper, "Job Queue Pumper", true);
|
||||||
//pumperThread.setPriority(I2PThread.NORM_PRIORITY+1);
|
pumperThread.setPriority(Thread.NORM_PRIORITY + 1);
|
||||||
pumperThread.start();
|
pumperThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ class JobQueueRunner extends I2PThread {
|
|||||||
_id = id;
|
_id = id;
|
||||||
_keepRunning = true;
|
_keepRunning = true;
|
||||||
_log = _context.logManager().getLog(JobQueueRunner.class);
|
_log = _context.logManager().getLog(JobQueueRunner.class);
|
||||||
|
setPriority(NORM_PRIORITY + 1);
|
||||||
// all createRateStat in JobQueue
|
// all createRateStat in JobQueue
|
||||||
//_state = 1;
|
//_state = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user