Skip to main content

suggested_thread_count

Function suggested_thread_count 

Source
pub fn suggested_thread_count() -> usize
Expand description

Returns a suggested number of threads for CPU-bound work.

Uses half the available cores (minimum 1) to leave headroom for the OS and other processes.