## thread_assign_default

Function - Assign a thread to the default processor set.

### SYNOPSIS

    kern_return_t   thread_assign_default
                    (thread_act_t                            thread);

### PARAMETERS

thread
  [in thread send right] The thread to be assigned.

### DESCRIPTION

The thread_assign_default function assigns thread to the default 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.

### NOTES

This variant of thread_assign exists because the control port for the default processor set is privileged, and therefore not available to most tasks.

### RETURN VALUES

Only generic errors apply.

### RELATED INFORMATION

Functions: thread_assign, thread_get_assignment, processor_set_create, processor_set_info, task_assign.