Manual Pages for Linux CentOS command on man sched_getparam
MyWebUniversity

Manual Pages for Linux CentOS command on man sched_getparam

SCHEDSETPARAM(2) Linux Programmer's Manual SCHEDSETPARAM(2)

NAME

schedsetparam, schedgetparam - set and get scheduling parameters SYNOPSIS

#include int schedsetparam(pidt pid, const struct schedparam *param); int schedgetparam(pidt pid, struct schedparam *param); struct schedparam { ... int schedpriority; ... }; DESCRIPTION schedsetparam() sets the scheduling parameters associated with the scheduling policy for the process identified by pid. If pid is zero, then the parameters of the calling process are set. The interpretation of the argument param depends on the scheduling policy of the process identified by pid. See schedsetscheduler(2) for a description of the scheduling policies supported under Linux. schedgetparam() retrieves the scheduling parameters for the process identified by pid. If pid is zero, then the parameters of the calling process are retrieved. schedsetparam() checks the validity of param for the scheduling policy

of the process. The value param->schedpriority must lie within the range given by schedgetprioritymin(2) and schedgetprioritymax(2). For a discussion of the privileges and resource limits related to scheduling priority and policy, see schedsetscheduler(2). POSIX systems on which schedsetparam() and schedgetparam() are avail‐ able define POSIXPRIORITYSCHEDULING in . RETURN VALUE On success, schedsetparam() and schedgetparam() return 0. On error,

-1 is returned, and errno is set appropriately. ERRORS EINVAL The argument param does not make sense for the current schedul‐ ing policy. EPERM The calling process does not have appropriate privileges (Linux: does not have the CAPSYSNICE capability). ESRCH The process whose ID is pid could not be found. CONFORMING TO

POSIX.1-2001. NOTES

Scheduling parameters are in fact per-thread attributes on Linux; see schedsetscheduler(2). SEE ALSO getpriority(2), nice(2), schedgetprioritymax(2), schedgetprioritymin(2), schedgetaffinity(2), schedgetscheduler(2), schedsetaffinity(2), schedsetscheduler(2), setpriority(2), capabilities(7)

Programming for the real world - POSIX.4 by Bill O. Gallmeister,

O'Reilly & Associates, Inc., ISBN 1-56592-074-0. COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

Linux 2013-02-12 SCHEDSETPARAM(2)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™