mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 00:02:59 +00:00
Transport: Raise bandwidth refiller thread priority
so I/O doesn't stall under high CPU load - Raise DH generator thread priority to keep DH building out of event pumper thread - Raise PRNG and YK generator thread priorites one notch - Set I2PThread priority in constructor Fixes problems mainly seen on Windows, which seems to be much more sensitive to priority settings
This commit is contained in:
1 parent
98a4460bde
commit
113a8a52f3
5 files changed
+13
-4
No files matched your search
@@ -56,7 +56,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
|
||||
_isRunning = true;
|
||||
_refillThread = new I2PThread(this, "PRNG");
|
||||
_refillThread.setDaemon(true);
|
||||
_refillThread.setPriority(Thread.MIN_PRIORITY+1);
|
||||
_refillThread.setPriority(Thread.NORM_PRIORITY - 2);
|
||||
_refillThread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user