- 论坛徽章:
- 17
|
回复 1# donghaitad
DESCRIPTION
sched_setscheduler() sets both the scheduling policy and the
associated parameters for the thread whose ID is specified in pid.
If pid equals zero, the scheduling policy and parameters of the
calling thread will be set. The interpretation of the argument param
depends on the selected policy. Currently, Linux supports the
following "normal" (i.e., non-real-time) scheduling policies:
SCHED_OTHER the standard round-robin time-sharing policy;
SCHED_BATCH for "batch" style execution of processes; and
SCHED_IDLE for running very low priority background jobs.
The following "real-time" policies are also supported, for special
time-critical applications that need precise control over the way in
which runnable threads are selected for execution:
SCHED_FIFO a first-in, first-out policy; and
SCHED_RR a round-robin policy.
更详细的,可以自行 man 2 sched_setscheduler |
|