get_affinity

Function get_affinity 

Source
pub fn get_affinity(pid: i32, num_cpus: usize) -> Result<CpuSet, ()>
Expand description

Get the cpu affinity for a thread.

Create and return a CpuSet that has room for at least num_cpus and with those set according to the current affinity.