Skip to main content

available

Function available 

Source
pub fn available() -> usize
Expand description

The CPUs this process may use right now: the affinity mask, intersected with the cgroup cpuset, then limited by the cgroup CPU quota (Linux), or the group affinity and the job object’s CPU rate (Windows). Size worker pools by this. A live reading: affinity, hot-plug, and quotas change. Always between 1 and logical().