ThreadPoolManager Priorities

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Pandragon
Posts: 704
Joined: Tue Jul 26, 2005 7:38 pm

ThreadPoolManager Priorities

Post 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?
Forsaiken
L2j Veteran
L2j Veteran
Posts: 99
Joined: Sun Mar 11, 2007 6:23 pm

Re: ThreadPoolManager Priorities

Post 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.
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
Post Reply