Crate num_cpus [−] [src]
num_cpus
A crate with utilities to determine the number of CPUs available on the current system.
Example
let cpus = num_cpus::get();
Functions
get |
Returns the number of available CPUs of the current system. |
get_physical |
Returns the number of physical cores of the current system. |