pub fn max_threads() -> usize
Resolve the thread limit: the configured value, or one per core if unset.