GeeCON Prague 2014*
The moose likes Java in General and the fly likes Multiprocessor JVM Scalability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Multiprocessor JVM Scalability" Watch "Multiprocessor JVM Scalability" New topic
Author

Multiprocessor JVM Scalability

Tim Berett
Ranch Hand

Joined: Jun 14, 2002
Posts: 35
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
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
GeeCON Prague 2014
 
subject: Multiprocessor JVM Scalability