Processor
Recipe | Crates | Categories |
---|---|---|
Check the number of logical cpu cores |
Check the number of logical cpu cores
Shows the number of logical CPU cores in the current machine using num_cpus::get
⮳.
fn main() { println!("Number of logical cores is {}", num_cpus::get()); }
[processor: expand (P2)](https://github.com/john-cd/rust_howto/issues/399)