• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiprocessor JVM Scalability

 
Tim Berett
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using java jvm in winxp on a dual cpu machine. With a single jvm process in the OS, I find that my multithreaded computational program only consumes 50% of the cpu load. How is it possible that the jvm can utilise all the cpu power of my dual cpu machine?
 
Henry Wong
author
Marshal
Pie
Posts: 21024
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Berett:
I am using java jvm in winxp on a dual cpu machine. With a single jvm process in the OS, I find that my multithreaded computational program only consumes 50% of the cpu load. How is it possible that the jvm can utilise all the cpu power of my dual cpu machine?


Most modern JVMs will distribute threads across the processors. However, you actually need active threads to run on the processors. So... if you only have one compute intensive thread in your application, don't expect more than one CPU to be at 100%.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic