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

  man pages->IRIX man pages -> pthread_setschedparam (3p)              
Title
Content
Arch
Section
 

Contents


pthread_setschedparam(3P)			     pthread_setschedparam(3P)


NAME    [Toc]    [Back]

     pthread_setschedparam, pthread_getschedparam - change thread scheduling

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_setschedparam(pthread_t thread, int policy,
	  const	struct sched_param *param);

     int pthread_getschedparam(pthread_t thread, int *opolicy,
	  struct sched_param *oparam);

DESCRIPTION    [Toc]    [Back]

     The pthread_setschedparam() function changes the scheduling policy	and
     parameters	of the thread identified by thread to the values specified by
     policy and	param.	Changing the scheduling	characteristics	of an existing
     thread is similar to creating the thread with those attributes [see
     pthread_attr_setschedpolicy() and pthread_attr_setschedparam()].  Only
     the assigned thread priority is changed - a temporary priority elevation
     obtained by acquiring a mutex is not affected [see
     pthread_mutexattr_setprotocol()].

     The pthread_getschedparam() function returns the scheduling policy	and
     parameters	of the thread identified by thread via the opolicy and oparam
     parameters.  The assigned thread priority is returned in the
     sched_priority field of sched_param; the actual priority may be
     temporarily higher	if the thread is holding a priority elevating mutex.

DIAGNOSTICS    [Toc]    [Back]

     On	success	pthread_setschedparam()	and pthread_getschedparam() return
     zero; otherwise an	error number is	returned:

     [ESRCH]	    The	thread parameter does not identify a thread.

     [EPERM]	    The	caller lacks sufficient	privilege to change the
		    scheduling attributes of thread.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_attr_setschedparam(3P), pthread_attr_setschedpolicy(3P),
     pthread_mutexattr_setprotocol(3P).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_getschedparam Tru64 Obtains the current scheduling policy and scheduling parameters of a thread
pthread_setrunon_np IRIX thread CPU scheduling affinity
pthread_getschedparam FreeBSD thread scheduling parameter manipulation
pthread_attr_setscope IRIX thread scheduling scope attributes
pthread_setschedparam FreeBSD thread scheduling parameter manipulation
pthread_single_np OpenBSD switch thread scheduling mode
pthread_getschedparam OpenBSD thread scheduling parameter manipulation
pthread_attr_setinheritsched IRIX thread scheduling inheritance attributes
pthread_schedparam FreeBSD thread scheduling parameter manipulation
pthread_multi_np OpenBSD switch thread scheduling mode
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service