osfmk/man/task_assign_default.html
Function - Assign a task to the default processor set.
**kern\_return\_t task\_assign\_default**** (task\_t **task,** boolean\_t **assign\_threads** );**
task[in task send right] The port for the task to be assigned. assign_threads[in scalar] True if this assignment should apply as well to the threads within the task.
The task_assign_default function assigns task to the default 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.
This variant of task_assign exists because the control port for the default processor set is privileged, and therefore not available to most tasks.
Only generic errors apply.
Functions: task_assign, task_get_assignment, processor_set_create, processor_set_info, thread_assign.