I have a multi thread application built on Java and I need to set different priorities to this threads. In windows it works fine, a bigger value (priority) gets more CPU time just like it was supposed.
On Linux, I cant find a logical answer to how it is working. Looked online, but can't seem to find a definitive answer on how its working on this platform. Some suggest that thread are given equal priorities, and the JVM ignores those settings... Some suggest values are just inverted (small value, more priority) because of the native process priority... etc.
Is there a right way to use this in Linux?
EDIT: I'm currently using Java 1.4.2, but I would appreciate any insight on how things work in recent and future versions.