Skip to main content

auto_threads_for

Function auto_threads_for 

Source
pub fn auto_threads_for(cpus: usize, busy_others: usize) -> usize
Expand description

4 x cpus workers split evenly between this process and busy_others, at most cpus and at least 2 (where there are 2): a scan on one thread gives up its overlap of inflating one entry while searching another. Up to 4 busy processes each keep every CPU.