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?
ThreadPoolManager Priorities
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- L2j Veteran
- Posts: 99
- Joined: Sun Mar 11, 2007 6:23 pm
Re: ThreadPoolManager Priorities
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.
2. All threads running at MAX prio makes them equal in prio again
3. See 1.
http://code.google.com/p/g3d-editor/
Experienced in the following languages/apis/ides: Java using Eclipse/AWT/Swing/NIO/JNI/Jogl, C/C++11/c++14 using QT/MFC/BOOST/STL/VS2012/VS2013/OpenGL/DirectX, Delphi using Borland, .NET/C# using VS2012/VS2013
Experienced in the following languages/apis/ides: Java using Eclipse/AWT/Swing/NIO/JNI/Jogl, C/C++11/c++14 using QT/MFC/BOOST/STL/VS2012/VS2013/OpenGL/DirectX, Delphi using Borland, .NET/C# using VS2012/VS2013