Back to Darwin Xnu

Policy Rr Info

osfmk/man/policy_rr_info.html

latest1.7 KB
Original Source

policy_rr_info


Structure - Specifies information associated with the system's Round Robin scheduling policy.

SYNOPSIS

**struct policy\_rr\_limit**** { ****int** max\_priority **;**** }; ****struct policy\_rr\_base**** { ****int** base\_priority **;**** int **quantum** ; ****};**** struct policy\_rr\_info ****{**** int **max\_priority** ; ****int** base\_priority **;**** int **quantum** ; ****boolean\_t** depressed **;**** int **depress\_priority** ; ****};**

FIELDS

max_priorityMaximum scheduling priority

base_priorityScheduling priority

quantumScheduling quantum (in milliseconds)

depressedTrue if scheduling priority is depressed

depress_priorityScheduling priority from which depressed

DESCRIPTION

The policy_rr_info structure defines the round-robin scheduling policy information. Round-robin threads have two priorities associated with them by the system:

  • A priority value which can be set by the thread to any value up to a maximum priority. Newly created threads obtain their priority from their task.

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_timeshare_info.