ThreadPoolManager Priorities
Posted: Sun Aug 03, 2014 3:22 am
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?
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?