Function - Return the processor set to which a thread is assigned.
kern_return_t thread_get_assignment (thread_act_t thread, processor_set_name_t processor_set);
The thread_get_assignment function returns the name port to the processor set to which thread is currently assigned. This port can only be used to obtain information about the processor set.
Only generic errors apply.
Functions: thread_assign, thread_assign_default, processor_set_create, processor_set_info, task_assign.