System module

get_number_of_processors

procedure · 1 overloadSource

How many processors of a kind the machine has.

Example
logical := get_number_of_processors(.ALL_LOGICAL);
assert(logical >= get_number_of_processors(.ALL_PHYSICAL) && logical > 0);

Doesn't run in the browser (skipped on wasm).

get_number_of_processors :: (
    $type: Processor_Query_Type = .PERFORMANCE_LOGICAL
) -> count: s32

Parameters

Returns

count: s32

See also