getCPUCount

fnint getCPUCount() @safe nothrow

Gets CPU count using sysctl.

Returns

Number of CPU cores.

Example:

auto count = getCPUCount();
writeln("CPU count: ", count);