4 <strong>Function
</strong> - Assign a task to a processor set.
7 <strong>kern_return_t task_assign
</strong>
8 <strong>(task_t
</strong> <var>task
</var>,
9 <strong>processor_set_t
</strong> <var>processor_set
</var>,
10 <strong>boolean_t
</strong> <var>assign_threads
</var><strong>);
</strong>
17 The port for the task to be assigned.
18 <dt> <var>processor_set
</var>
20 [in processor-set-control send right]
21 The control port for the processor
22 set into which the task is to be assigned.
23 <dt> <var>assign_threads
</var>
26 True if this assignment should apply as well to the threads
31 The
<strong>task_assign
</strong> function assigns
<var>task
</var> to the set
32 <var>processor_set
</var>.
33 After the assignment is completed, newly created threads within this task
35 this processor set. Any previous assignment of the task is nullified.
37 If
<var>assign_threads
</var> is
<strong>TRUE
</strong>, existing threads within the task
38 will also be assigned to the processor set.
39 <h3>RETURN VALUES
</h3>
41 Only generic errors apply.
42 <h3>RELATED INFORMATION
</h3>
45 <a href=
"task_assign_default.html"><strong>task_assign_default
</strong></a>,
46 <a href=
"task_get_assignment.html"><strong>task_get_assignment
</strong></a>,
47 <a href=
"processor_set_create.html"><strong>processor_set_create
</strong></a>,
48 <a href=
"processor_set_info.html"><strong>processor_set_info
</strong></a>,
49 <a href=
"thread_assign.html"><strong>thread_assign
</strong></a>.