scheduler
pub fn set_affinity(pid: i32, cpuset: CpuSet) -> Result<(), ()>
Set the cpu affinity for a thread.