api / org.gradle.concurrent / ParallelismConfiguration / getMaxWorkerCount

getMaxWorkerCount

abstract fun getMaxWorkerCount(): Int

Returns the maximum number of concurrent workers used for underlying build operations. Workers can be threads, processes or whatever Gradle considers a "worker". Some examples:

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

Return
maximum number of concurrent workers, always >= 1.

See Also
java.lang.Runtime#availableProcessors()