sched_param

Contains thread scheduling information for a policy.

Service:Threads

Structure

  #include <sched.h>
  
  struct sched_param
  {
     int               sched_priority;
     int               sched_ss_low_priority; 
     struct timespec   sched_ss_repl_period; 
     struct timespec   sched_ss_init_budget;
     int               sched_ss_max_repl;
     int               sched_policy;
  };
  

Fields

sched_priority

Specifies the priority of the thread.

sched_ss_low_priority

Specifies a low scheduling priority.

sched_ss_repl_period

Specifies a replenishment period. For information about the timespec structure, see timespec_t, which is also called timespec.

sched_ss_init_budget

Specifies an initial budget.For information about the timespec structure, see timespec_t, which is also called timespec.

sched_ss_max_repl

Specifies the maximum pending replenishments.

sched_policy

Specifies the scheduling policy of the thread. For a list of possible values, see Section 55.1.1, Schedule Policies.

Remarks

This structure is used by all supported policies. For a list of supported policies, see Section 55.1.1, Schedule Policies.