Skip to content

availableProcessors

availableProcessors() → number · System

Get the number of available CPU cores/processors on the current system.

utlx
{
  cpuCores: availableProcessors()
}
// Output: {"cpuCores": 8}

Released under AGPL-3.0.