File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mac OS and the fly likes Is there a way to check how the mac is assigning/utilizing the processors? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Is there a way to check how the mac is assigning/utilizing the processors?" Watch "Is there a way to check how the mac is assigning/utilizing the processors?" New topic
Author

Is there a way to check how the mac is assigning/utilizing the processors?

Adrian Burlington
Ranch Hand

Joined: Jun 16, 2009
Posts: 75
I have a mac pro 8-core, Two 2.26GHz.

My application is a producer-consumer problem; where the producer is a thread fetching heavy data from the db and the consumer is another thread calculating the data from a queue placed by the producer.

Question: How can I ensure (or at least check/view) that the JVM is utilizing the processorS and not only one?
Also, is it the JVM 'problem' to assign the thread the processor 1 or 2 or can I (the developer) intervene.

Thank you!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

No sure if this has it. But you can just try jconsole which comes with all JDKs now. Just open a terminal window and type

jconsole

Look through the tabs and list on the left to see if you can see the CPUs used.

Good Luck

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a way to check how the mac is assigning/utilizing the processors?
 
Similar Threads
Threads
inter thread communication
Fill database using multiple threads
When utilizing all cores - speed of execution decrease significantly. Why?
queue issue