wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 18507
    
  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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiprocessor JVM Scalability
 
Similar Threads
Multiple CPU
Dual processor utilization
Utilizing second processor
How to interpret multi-thread test results
Why does RAM always double?