Skip to main content

cpu_margin

Function cpu_margin 

Source
pub fn cpu_margin(parallelism: usize) -> usize
Expand description

The threads left free for everything else: an eighth of them, at least one, and none when the process may run only two.