IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

sched_getparam (2)

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



NAME
       sched_setparam, sched_getparam - set and get scheduling parameters

SYNOPSIS
       #include<sched.h>

       intsched_setparam(pid_t pid,conststructsched_param*p);

       intsched_getparam(pid_t pid,structsched_param*p);

       structsched_param{
           ...
           int sched_priority;
           ...
       };

DESCRIPTION
       sched_setparam  sets  the  scheduling  parameters  associated  with the
       scheduling policy for the process identified by pid. If  pid  is  zero,
       then  the parameters of the current process are set. The interpretation
       of the parameter p depends on the selected policy. Currently, the  fol-
       lowing three scheduling policies are supported under Linux: SCHED_FIFO,
       SCHED_RR, and SCHED_OTHER.

       sched_getparam retrieves the  scheduling  parameters  for  the  process
       identified  by  pid. If pid is zero, then the parameters of the current
       process are retrieved.

       sched_setparam checks the validity of p for the  scheduling  policy  of
       the  process. The parameter p->sched_priority must lie within the range
       given by sched_get_priority_min and sched_get_priority_max.

       POSIX systems on which sched_setparam and sched_getparam are  available
       define _POSIX_PRIORITY_SCHEDULING in <unistd.h>.


RETURNVALUE
       On  success,  sched_setparam and sched_getparam return 0.  On error, -1
       is returned, errno is set appropriately.

ERRORS
       ESRCH  The process whose ID is pid could not be found.

       EPERM  The calling process does not have  appropriate  privileges.  The
              process  calling  sched_setparam needs an effective uid equal to
              the euid or uid of the process identified by pid, or it must  be
              a superuser process.

       EINVAL The  parameter  p does not make sense for the current scheduling
              policy.

CONFORMINGTO
       POSIX.1b (formerly POSIX.4)

SEEALSO
       sched_setaffinity(2),   sched_getaffinity(2),    sched_setscheduler(2),
       sched_getscheduler(2),    sched_get_priority_max(2),   sched_get_prior-
       ity_min(2), nice(2), setpriority(2), getpriority(2),

       sched_setscheduler(2) has a description of the Linux scheduling scheme.

       Programming  for  the  real  world  -  POSIX.4  by Bill O. Gallmeister,
       O'Reilly & Associates, Inc., ISBN 1-56592-074-0
       IEEE Std 1003.1b-1993 (POSIX.1b standard)
       ISO/IEC 9945-1:1996



Linux 1.3.81                      1996-04-10                 SCHED_SETPARAM(2)

_Exitgetsockoptoutwshmat
_exitgettidoutw_pshmctl
_llseekgettimeofdaypauseshmdt
_newselectgetuidpersonalityshmget
_sysctlgttypipeshmop
acceptidlepivot_rootshutdown
accessinbpollsigaction
acctinb_pprctlsigaltstack
adjtimexinlpreadsigblock
afs_syscallinl_pprofsiggetmask
alarminsbpselectsigmask
alloc_hugepagesinslptracesignal
arch_prctlinswpwritesigpause
bdflushintroquotactlsigpending
bindinwreadsigprocmask
breakinw_preaddirsigqueue
brkioctlreadlinksigreturn
cacheflushioctl_listreadvsigsetmask
capgetiopermrebootsigsuspend
capsetioplrecvsigtimedwait
chdiripcrecvfromsigvec
chmodkillrecvmsgsigwaitinfo
chownkillpgrenamesocket
chrootlchownrmdirsocketcall
clonelinksbrksocketpair
closelistensched_get_priority_maxssetmask
connectllseeksched_get_priority_minstat
creatlocksched_getaffinitystatfs
duplseeksched_getparamstime
dup2lstatsched_getschedulerstty
execvemadvisesched_rr_get_intervalswapoff
exitmincoresched_setaffinityswapon
fchdirmkdirsched_setparamsymlink
fchmodmknodsched_setschedulersync
fchownmlocksched_yieldsyscall
fcntlmlockallselectsyscalls
fdatasyncmmapselect_tutsysctl
flockmmap2semctlsysfs
forkmodify_ldtsemgetsysinfo
free_hugepagesmountsemopsyslog
fstatmprotectsendtime
fstatfsmpxsendfiletimes
fsyncmremapsendmsgtkill
ftruncatemsgctlsendtotruncate
futexmsggetsetcontextumask
getcontextmsgopsetdomainnameumount
getdentsmsgrcvsetegidumount2
getdomainnamemsgsndseteuiduname
getdtablesizemsyncsetfsgidundocumented
getegidmunlocksetfsuidunimplemented
geteuidmunlockallsetgidunlink
getgidmunmapsetgroupsuselib
getgroupsnanosleepsethostidustat
gethostidnfsservctlsethostnameutime
gethostnamenicesetitimerutimes
getitimerobsoletesetpgidvfork
getpagesizeoldfstatsetpgrpvhangup
getpeernameoldlstatsetpriorityvm86
getpgidoldoldunamesetregidwait
getpgrpoldstatsetresgidwait3
getpidoldunamesetresuidwait4
getppidopensetreuidwaitpid
getpriorityoutbsetrlimitwrite
getresgidoutb_psetsidwritev
getresuidoutlsetsockopt 
getrlimitoutl_psettimeofday 
getrusageoutsbsetuid 
getsidoutslsetup 


My Money 2.0.49
Personal financial software
Linux Kernel 2.6 2.6.32-rc8
Linux Kernel
GCstar 1.5.0
Personal collections manager
ImageMagick 6.5.7.9
ImageMagick image processing studio
BibleTime 2.4
Bible study software for Linux / KDE
PHP 5.3.1
Server-side, cross-platform, HTML embedded scripting language.
LFTP 4.0.4
Shell-like command line ftp client.
Tellico 2.1.1
Collection manager for books, music, videos, and bibliographies
Totem 2.28.4
Movie player for Gnome
GNOME 2.29.2
GNOME desktop environment
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

Vulnerability Management for Dummies

Get all the Facts and See How to Implement a Successful Vulnerability Management Program.

Website Magazine

Has tapped premier talent in the Internet industry for our content and each and every issue will contain practical advice and insights for website owners.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info