Increase timer thread priority

This commit is contained in:
zzz
2015-10-21 13:11:35 +00:00
parent f713a19785
commit 6efce31eed
3 changed files with 3 additions and 1 deletions

View File

@ -118,6 +118,7 @@ public class SimpleTimer2 {
// (new Exception("OWCH! DAMN! Wrong ThreadGroup `" + name +"', `" + rv.getName() + "'")).printStackTrace();
// }
rv.setDaemon(true);
rv.setPriority(Thread.NORM_PRIORITY + 1);
return rv;
}
}

View File

@ -341,7 +341,7 @@ public class JobQueue {
public void startup() {
_alive = true;
I2PThread pumperThread = new I2PThread(_pumper, "Job Queue Pumper", true);
//pumperThread.setPriority(I2PThread.NORM_PRIORITY+1);
pumperThread.setPriority(Thread.NORM_PRIORITY + 1);
pumperThread.start();
}

View File

@ -21,6 +21,7 @@ class JobQueueRunner extends I2PThread {
_id = id;
_keepRunning = true;
_log = _context.logManager().getLog(JobQueueRunner.class);
setPriority(NORM_PRIORITY + 1);
// all createRateStat in JobQueue
//_state = 1;
}