The OpenD Programming Language

totalCPUs

The total number of CPU cores available on the current machine, as reported by the operating system.

import std.parallelism;
alias totalCPUs = __lazilyInitializedConstant!(immutable(uint), uint.max, totalCPUsImpl)

Meta