osfmk/man/policy_timeshare_info.html
Structure - Specifies information associated with the system's Timeshare scheduling policy.
**struct policy\_timeshare\_limit**** { ****int** max\_priority **;**** }; ****struct policy\_timeshare\_base**** { ****int** base\_priority **;**** }; ****struct policy\_timeshare\_info**** { ****int** max\_priority **;**** int **base\_priority** ; ****int** cur\_priority **;**** boolean\_t **depressed** ; ****int** depress\_priority **;**** };**
max_priorityMaximum scheduling priority.
base_priorityBase scheduling priority.
cur_priorityCurrent scheduling priority.
depressedTrue if scheduling priority is depressed.
depress_priorityScheduling priority from which depressed.
The policy_timeshare_info structure defines the timeshare scheduling policy information. Timeshare threads have three priorities associated with them by the system:
A scheduled priority value which is used to make scheduling decisions for the thread. This value is determined on the basis of the user priority value by the scheduling policy (for time-sharing, this means adding an increment derived from CPU usage).
Functions: thread_info, task_info, processor_set_info, processor_set_policy_control, processor_set_policy_disable, processor_set_policy_enable, task_policy, thread_policy, thread_set_policy.
Data Structures: policy_fifo_info, policy_rr_info.