• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic