get_processors

Function get_processors 

Source
pub fn get_processors() -> usize
Expand description

Helper function to get the number of CPUs. We subtract 1, because the main thread that’s doing the spawning counts as one OS thread.