Skip to main content
Windward

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

Overview

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

Resolution

From the Java API:

 

you can call 

   int availableProcessors()        

 

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

  • Was this article helpful?