Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.Thread priorities mapping to native priorities

2951310Jul 24 2015 — edited Jul 24 2015

Hi,

How does the Oracle JDK 8 VM map Java threads priorities to native OS threads priorities?

for example,

System.out.println(Thread.MAX_PRIORITY);

System.out.println(Thread.MIN_PRIORITY);

System.out.println(Thread.NORM_PRIORITY);

will output on Linux:

10

1

5

so refining the question:

- on linux, will the Java threads be mapped to native Linux priorities 1..0? which Linux scheduling policy e.g., OTHER (RR), FIFO?

- is the mapping consistent with mapping on other platforms?

thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2015
Added on Jul 24 2015
0 comments
703 views