The OpenBSD doesn't have sysctlbyname(), but sysctl() can be used to read the number of online/available CPUs by reading following MIB(s): [CTL_HW, HW_NCPUONLINE] with fallback to [CTL_HW, HW_NCPU].
The OpenBSD doesn't have sysctlbyname(), but sysctl() can be used to read the number of online/available CPUs by reading following MIB(s): [CTL_HW, HW_NCPUONLINE] with fallback to [CTL_HW, HW_NCPU].