Skip to main content

ncpus

Function ncpus 

Source
pub fn ncpus() -> usize
Expand description

Returns the number of logical CPUs the runtime can detect.

Used together with load_average_one to apply a saturation check.