Function - Assign a thread to a processor set.
kern_return_t thread_assign (thread_act_t thread, processor_set_t processor_set);
The thread_assign function assigns thread to the set processor_set. After the assignment is completed, the thread executes only on processors that are assigned to that processor set. Any previous assignment of the thread is nullified.
Only generic errors apply.
Functions: thread_assign_default, thread_get_assignment, processor_set_create, processor_set_info, task_assign.