Will thread priorities within JVM affect JVM process priorities?
posted 6 years ago
I got a doubt on thread priorities, Assume that I have only two JVMs(JVM-A and JVM-B) running in a single physical machine. Since these two JVMs are the only process to the OS, lets assume that the processor cycles is 50:50 for each JVMs, meaning the share the CPU cycles equally.
Suppose I have 5 threads in each JVM and JVM-A's threads are all of NORMAL_PRIORITY(5) and JVM-B's threads are all of HIGH_PRIORITY(10), will the processor cycle shift to like 25:75(JVM-A:JVM-B)? I mean will JVM-B be given higher priority by the OS?