In Kernel§

See primary documentation in context for method cpu-cores

method cpu-cores(--> Int)

Instance / Class method returning the number of CPU cores that are available.

say $*KERNEL.cpu-cores# OUTPUT: «8␤»