0

When setting a Java thread to min priority I know it results in more scheduling time for fellow threads within the same JVM. I'd like to know if threads in other JVM processes will get more scheduling time as well?
In other words, does thread priority affects scheduling regardless of processes scopes?

I know OS might matter, so I'll say I care about Java6 on Linux mostly.

Gili Nachum
  • 5,288
  • 4
  • 31
  • 33
  • 1
    No; such priority is internal to one JVM instance (process), and has little to no influence on the underlying OS' scheduler. – fge Mar 26 '14 at 23:32
  • @robbmj Are you sure? Java uses native threads now. That was true with green threads. – Elliott Frisch Mar 26 '14 at 23:34
  • Yes, I had to look into this a little while back. If I can find the documentation I referenced I will post an answer. – robbmj Mar 26 '14 at 23:39
  • I'd like to close this question after running some experiments that showed me that priorities doesn't make a big diff even within the same process. Read more here: http://stackoverflow.com/questions/12038592/java-thread-priority-has-no-effect – Gili Nachum Apr 12 '14 at 20:03
  • Related: http://stackoverflow.com/questions/1662185/do-linux-jvms-actually-implement-thread-priorities – ninjalj Jul 05 '14 at 10:30

0 Answers0