title: Is there a way in Java to find out how many CPUs (or cores) are installed?
body: <p>I want to make some tuning for multithreaded program.</p>
  
  <p>If I know how much threads can really work in parallel I can make the program much more effective.</p>
  
  <p>Is there a way in Java to get this info? </p>