Skip to main content

get_thread_count

Function get_thread_count 

Source
pub fn get_thread_count() -> usize
Expand description

Gets the number of available threads for parallel processing.

This function returns the number of threads that the system can execute simultaneously, which is useful for determining optimal parallelism levels.

ยงReturns

  • usize - The number of available threads, or 1 if the value cannot be determined.