Page 1 of 1

ThreadPoolManager Priorities

Posted: Sun Aug 03, 2014 3:22 am
by Pandragon
At ThreadPoolManager.java we can see that
Thread.MIN_PRIORITY = 1
Thread.NORM_PRIORITY = 5
Thread.MAX_PRIORITY = 10

So why we use Thread.NORM_PRIORITY + 1 at _ioPacketsThreadPool and _generalPacketsThreadPool?

5 + 1 = 6, not 10
Why not use Thread.MAX_PRIORITY instead of Thread.NORM_PRIORITY + 1?

Re: ThreadPoolManager Priorities

Posted: Wed Feb 25, 2015 10:07 pm
by Forsaiken
1. Because it makes no huge difference at all
2. All threads running at MAX prio makes them equal in prio again
3. See 1.