Sets a thread's CPU affinity mask.
fn sched_setaffinity(tid: i32, set: &[u8]) -> i32
The id of the thread.
The cpu affinity of the thread.
Returns success or an error value.
sched_setaffinity(2)