cpuinfo
nimony/lib/std/cpuinfo.nim
This module implements a proc to determine the number of CPUs / cores.
proc countProcessors(): int64Returns the number of processors this process may run on. On Linux that is its CPU affinity, so a cpuset or
tasksetnarrows it; elsewhere it is the number the machine has. Returns 0 if it cannot be detected.