Available cores



examples/threads/available/src/main.rs
fn main() {
    println!("{}", std::thread::available_parallelism().unwrap());
}