Function - Set target task's default scheduling policy state.
kern_return_t task_policy
(task_t task,
policy_t policy,
policy_base_t base,
base base_count,
boolean_t set_limit,
boolean_t change_threads);
The task_policy function sets the default scheduling attributes for task. These attributes are used when creating new threads. Changing the default attributes for a task does not affect the attributes of the contained threads unless change_threads is TRUE. At no time will a thread ever have scheduling attributes that exceed the thread's limits.
Functions: thread_policy, thread_set_policy, task_set_policy, processor_set_policy_control.
Data Structures: policy_fifo_info, policy_rr_info, policy_timeshare_info.