• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • 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!
Posts: 17346
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • 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


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

Good Luck

Evacuate the building! Here, take this tiny ad with you:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic