• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Will thread priorities within JVM affect JVM process priorities?

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!