This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 20173
    
  47

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
 
It's not a secret anymore!