[concurrency-interest] Thread priority
stanimir at riflexo.com
Thu Feb 7 02:21:40 EST 2013
Thread priorities are usually NOT applied at all.
intx DefaultThreadPriority = -1
intx JavaPriority10_To_OSPriority = -1
intx JavaPriority1_To_OSPriority = -1
intx JavaPriority2_To_OSPriority = -1
intx JavaPriority3_To_OSPriority = -1
intx JavaPriority4_To_OSPriority = -1
intx JavaPriority5_To_OSPriority = -1
intx JavaPriority6_To_OSPriority = -1
intx JavaPriority7_To_OSPriority = -1
intx JavaPriority8_To_OSPriority = -1
intx JavaPriority9_To_OSPriority = -1
in other words unless specified : -XXJavaPriority10_To_OSPriority=
it won't be mapped.
If applied the JVM compiler/GC threads may become starved which you don't
want, so they have to work above normal prir (that request root
privileges). Alternatively the normal java threads have to run w/ lower
prir which means other process will have higher priority - also unpleasant.
On Thu, Feb 7, 2013 at 5:20 AM, Mohan Radhakrishnan <
radhakrishnan.mohan at gmail.com> wrote:
> Can the Thread priority setting in the API still be reliably
> used uniformly across processors ? There are other concurrency patterns in
> the API but this setting is still there.
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest