make the client writer thread run at max priority, since it is very time sensitive and only executes for very brief periods

This commit is contained in:
jrandom
2004-07-02 16:53:49 +00:00
committed by zzz
parent c636b0a0ec
commit 3996cd1f08

View File

@ -103,7 +103,7 @@ public class ClientConnectionRunner {
I2PThread t = new I2PThread(_writer); I2PThread t = new I2PThread(_writer);
t.setName("Writer " + ++__id); t.setName("Writer " + ++__id);
t.setDaemon(true); t.setDaemon(true);
t.setPriority(I2PThread.MIN_PRIORITY); t.setPriority(I2PThread.MAX_PRIORITY);
t.start(); t.start();
_out = _socket.getOutputStream(); _out = _socket.getOutputStream();
_reader.startReading(); _reader.startReading();