getCpus

open fun getCpus(): Int

Number of processors available to the process. This value may change between invocations especially in (containerized) environments where resource usage can be isolated (for example using control groups).

Return

result of availableProcessors

See also