HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
r
rtsched(2) rtsched(2)
NAME
rtsched: sched_get_priority_max(), sched_get_priority_min(), sched_getparam(), sched_getscheduler(),
sched_rr_get_interval(), sched_setparam(), sched_setscheduler(), sched_yield(), PRI_HPUX_TO_POSIX(),
PRI_POSIX_TO_HPUX() - real-time scheduling operations
SYNOPSIS
#include <sched.h>
int sched_setparam(
pid_t pid,
const struct sched_param *param
);
int sched_getparam(
pid_t pid,
struct sched_param *param
);
int sched_setscheduler(
pid_t pid,
int policy,
const struct sched_param *param
);
int sched_getscheduler(
pid_t pid
);
int sched_yield();
int sched_get_priority_max(
int policy
);
int sched_get_priority_min(
int policy
);
int sched_rr_get_interval(
pid_t pid,
struct timespec *interval
);
int PRI_POSIX_TO_HPUX(
int pri
);
int PRI_HPUX_TO_POSIX(
int pri
);
DESCRIPTION
Summary
sched_get_priority_max()
Get maximum scheduling policy
sched_get_priority_min()
Get minimum scheduling policy
sched_getparam() Get scheduling parameters of process
sched_getscheduler() Get scheduling policy of process
sched_rr_get_interval() Update execution time limit for a process
sched_setparam() Set scheduling parameters of process
sched_setscheduler() Set scheduling policy and parameters of process
sched_yield() Requeue current process in process list
PRI_HPUX_TO_POSIX() Convert HP-UX priority to POSIX
PRI_POSIX_TO_HPUX() Convert POSIX priority to HP-UX
sched_setparam()
The sched_setparam()
function sets the scheduling parameters of the process specified by pid to the
values specified by the sched_param structure pointed to by param. The value of the sched_priority
HP-UX Release 11i: December 2000 − 1 − Section 2−−265
___
___