Crate num_cpus [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, and unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

num_cpus

A crate with utilities to determine the number of CPUs available on the current system.

Example

let cpus = num_cpus::get();

Functions

get [
Experimental
]

Returns the number of available CPUs of the current system.

get_physical [
Experimental
]

Returns the number of physical cores of the current system.