Expand description
A simple crate to get the number of CPU cores available.
§Examples
let cores = u::num_cpu();
println!("This machine has {} CPU cores available", cores);
The function caches the result internally, so subsequent calls are very fast.
Functions§
- num_cpu
- Returns the number of CPU cores available to the current process.