Function - Assign a task to a processor set.
kern_return_t task_assign (task_t task, processor_set_t processor_set, boolean_t assign_threads);
The task_assign function assigns task to the set processor_set. After the assignment is completed, newly created threads within this task will be assigned to this processor set. Any previous assignment of the task is nullified.
If assign_threads is TRUE, existing threads within the task will also be assigned to the processor set.
Only generic errors apply.
Functions: task_assign_default, task_get_assignment, processor_set_create, processor_set_info, thread_assign.