rprobe#

cpu_count(default: int = 4) int#

Determine the number of processors on the current machine. Returns the ‘default’ if the probes fail.

read_lscpu() int | None#
read_cpuinfo() int | None#

count the number of lines of this pattern:

processor : <integer>

read_sysctl() int | None#