Processor
Check number of logical cpu cores
Shows the number of logical CPU cores in current machine using [num_cpus::get
].
fn main() { println!("Number of logical cores is {}", num_cpus::get()); }
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Shows the number of logical CPU cores in current machine using [num_cpus::get
].
fn main() { println!("Number of logical cores is {}", num_cpus::get()); }