*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/sched_get_priority_max (2)              


sched_get_priority_max(2)			     sched_get_priority_max(2)

NAME    [Toc]    [Back]

     sched_get_priority_max, sched_get_priority_min - get scheduling policy
     priority range

C SYNOPSIS    [Toc]    [Back]

     #include <sched.h>

     int sched_get_priority_max	(int policy<b>);
     int sched_get_priority_min	(int policy<b>);

DESCRIPTION    [Toc]    [Back]

     sched_get_priority_max and	sched_get_priority_min return the maximum and
     minimum priority values, respectively, for	the specified scheduling

     SCHED_FIFO    [Toc]    [Back]
	     The first-in-first-out real-time policy

     SCHED_RR    [Toc]    [Back]
	     The round-robin real-time scheduling policy

     SCHED_TS    [Toc]    [Back]
	     The timeshare earnings based scheduling policy

     SCHED_OTHER    [Toc]    [Back]
	     The scheduling policy is equivalent to the	SCHED_TS

     Unlike IRIX 6.2 and earlier releases, processes having a higher numerical
     priority value are	more important than processes having a lower numerical
     priority value.

     Arbitrary priority	values within the range	should not be used.
     Developers	must consider the needs	of the application and how it should
     interact with the rest of the system, before selecting a real-time
     priority.	To aid in this decision, the priorities	of the system threads
     should be considered. See the "Real-Time Priority Band" section of
     realtime(5) for more detailed information.

     sched_get_priority_max and	sched_get_priority_min will fail if the
     following is true:

     [EINVAL]	    The	policy argument	does not represent a valid scheduling

SEE ALSO    [Toc]    [Back]

     realtime(5), sched_setparam(2), sched_getparam(2),	sched_setscheduler(2),
     sched_yield(2), sched_rr_get_interval(2)

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, the scheduling	priority maximum or minimum
     for policy	is returned to the calling process.  Otherwise,	a value	of -1
     is	returned and errno is set to indicate the error.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sched_get_priority_max Tru64 Returns the maximum or minimum priority for the specified scheduling policy (P1003.1b)
sched_get_priority_min Tru64 Returns the maximum or minimum priority for the specified scheduling policy (P1003.1b)
sched_setscheduler Tru64 Sets the scheduling policy and scheduling parameters of the specified process (P1003.1b)
pthread_getschedparam Tru64 Obtains the current scheduling policy and scheduling parameters of a thread
pthread_setschedparam Tru64 Changes a thread's scheduling policy and scheduling parameters
sched_get_priority_max Linux get static priority range
sched_getscheduler IRIX get the scheduling policy of a process
sched_setscheduler IRIX set the scheduling policy of a process
pthread_attr_setschedpolicy IRIX manage scheduling policy attributes
sched_getscheduler FreeBSD set/get scheduling policy and scheduler parameters
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service