Konstantin,

On 12/5/12 3:06 AM, Konstantin Kolinko wrote:
> 2012/12/5 Caldarale, Charles R <chuck.caldar...@unisys.com>:
>>> From: kkoli...@apache.org [mailto:kkoli...@apache.org]
>>> Subject: svn commit: r1417282 - in /tomcat/trunk/webapps/docs/config: 
>>> ajp.xml executor.xml http.xml
>>
>>> Author: kkolinko
>>> Date: Wed Dec  5 05:34:16 2012
>>> New Revision: 1417282
>>
>>> Modified: tomcat/trunk/webapps/docs/config/ajp.xml
>>> URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/ajp.xml?
>>> rev=1417282&r1=1417281&r2=1417282&view=diff
>>> ==============================================================================
>>> --- tomcat/trunk/webapps/docs/config/ajp.xml (original)
>>> +++ tomcat/trunk/webapps/docs/config/ajp.xml Wed Dec  5 05:34:16 2012
>>> @@ -285,9 +285,10 @@
>>>
>>>      <attribute name="acceptorThreadPriority" required="false">
>>>        <p>The priority of the acceptor threads. The threads used to accept
>>> -      new connections. The default value is
>>> -      <code>java.lang.Thread#NORM_PRIORITY</code>. See the JavaDoc for the
>>> -      java.lang.Thread class for more details on what this priority 
>>> means.</p>
>>> +      new connections. The default value is <code>5</code> (the value of 
>>> the
>>
>> The value of NORM_PRIORITY on Windows 64-bit JDK 7 appears to be 1, not 5.  
>> I haven't checked other versions or platforms.
> 
> 1 is MIN_PRIORITY.
> 
> The constants are evaluated at compile time. They cannot be different
> between systems.

+1

This is part of the public java.util.Thread API. If those values change,
bad things likely happen.

From my Oracle Java 1.7 distro on 64-bit Mac OS:

    /**
     * The minimum priority that a thread can have.
     */
    public final static int MIN_PRIORITY = 1;

   /**
     * The default priority that is assigned to a thread.
     */
    public final static int NORM_PRIORITY = 5;

    /**
     * The maximum priority that a thread can have.
     */
    public final static int MAX_PRIORITY = 10;

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to