• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Will thread priorities within JVM affect JVM process priorities?

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Thanks in advance,
reply
    Bookmark Topic Watch Topic
  • New Topic