Function - Set target task's default scheduling policy state. (Protected Interface.)
kern_return_t task_set_policy
(task_t task,
processor_set_t processor_set,
policy_t policy,
policy_base_t base,
mach_msg_type_number_t base_count,
policy_limit_t limit,
mach_msg_type_number_t limit_count,
boolean_t change_threads);
The task_set_policy function sets the scheduling attributes, both base and limit, for task. policy may be any policy implemented by the processor set whether or not it is enabled.
Functions: processor_set_policy_control, thread_policy, thread_set_policy, task_policy.
Data Structures: policy_fifo_info, policy_rr_info, policy_timeshare_info.