Files
simple-rust-tests/num_cpus/src/main.rs
2020-05-03 00:35:33 +08:00

6 lines
124 B
Rust

fn main() {
println!("num of cpus: {}", num_cpus::get());
println!("num of cpus: {}", num_cpus::get_physical());
}