File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 18117
    
  39

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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiprocessor JVM Scalability
 
Similar Threads
Utilizing second processor
Dual processor utilization
Why does RAM always double?
Multiple CPU
How to interpret multi-thread test results