Function - Sets the maximum scheduling priority for a processor set.
#include< mach/mach_host.h> kern_return_t processor_set_max_priority (processor_set_t processor_set, int priority, boolean_t change_threads);
The processor_set_max_priority function sets the maximum scheduling priority for processor_set. The maximum priority of a processor set is used only when creating new threads. A new thread's maximum priority is set to that of its assigned processor set. When assigned to a processor set, a thread's maximum priority is reduced, if necessary, to that of its new processor set; its current priority is also reduced, as needed. Changing the maximum priority of a processor set does not affect the priority of the currently assigned threads unless change_threads is TRUE. If this priority change violates the maximum priority of some threads, their maximum priorities will be reduced to match.
Only generic errors apply.
Functions: thread_assign.