Skip to main content

How to find out how many CPU's you've got using a Java call


Here is the Java call your developers need to make to return the number of CPUs on a system as recognized by Java.


From the Java API:


you can call 

   int availableProcessors()        


Returns the number of processors available to the Java virtual machine.

  • Was this article helpful?