CountCPUs()

Syntax

Result = CountCPUs([Type])
Description
Returns the number of CPU cores available.

Parameters

Type (optional) The CPU type to request. It can be one of the following value:
  #PB_System_CPUs        : the total number of CPU cores installed in the computer (default). 
  #PB_System_ProcessCPUs : the available CPU cores for the current process. This is useful as the OS 
                           can limit a process to use only a small number of CPU.

Return value

Returns the number of CPU cores available.

Supported OS

All

<- ComputerName() - System Index - Delay() ->