pthread_setschedprio

PTHREAD_SETSCHEDPRIO(3)    Linux Programmer's Manual   PTHREAD_SETSCHEDPRIO(3)



åå
       pthread_setschedprio - ã¹ã¬ããã®ã¹ã±ã¸ã¥ã¼ãªã³ã°åªå度ãè¨å®ãã

æ¸å¼
       #include <pthread.h>

       pthread_setschedprio(pthread_t thread, int prio);

       -pthread ã§ã³ã³ãã¤ã«ãã¦ãªã³ã¯ããã

説æ
       pthread_setschedprio() é¢æ°ã¯ãã¹ã¬ãã thread ã®ã¹ã±ã¸ã¥ã¼ãªã³ã° åªå度ã«
       prio ã§æå®ãããå¤ãè¨å®ãã (ä¸æ¹ãpthread_setschedparam(3)
       ã¯ã¹ã¬ããã®ã¹ã±ã¸ã¥ã¼ãªã³ã°ããªã·ã¼ ã¨åªå度ã®ä¸¡æ¹ãå¤æ´ãã)ã

è¿ãå¤
       æåããã¨ããã®é¢æ°ã¯ 0 ãè¿ãã ã¨ã©ã¼ã®å ´åã0 以å¤ã®ã¨ã©ã¼çªå·ãè¿ãã
       pthread_setschedprio() ã失æããå ´åã thread ã®
       ã¹ã±ã¸ã¥ã¼ãªã³ã°åªå度ã¯å¤æ´ãããªãã

ã¨ã©ã¼
       EINVAL æå®ãããã¹ã¬ããã®ã¹ã±ã¸ã¥ã¼ãªã³ã°ããªã·ã¼ã§ã¯ã prio ã¯ç¡å¹ã§ããã

       EPERM  å¼ã³åºãå´ããæå®ãããåªå度ãè¨å®ããã®ã«å¿è¦ãªç¹æ¨©ãæã£ã¦ããªãã

       ESRCH  ID ã thread ã®ã¹ã¬ãããè¦ã¤ãããªãã£ãã

       POSIX.1-2001 ã§ã¯ã pthread_setschedprio() ã«é¢ã㦠ã¨ã©ã¼ ENOTSUP
       ("ãµãã¼ãããã¦ããªãå¤ãåªå度 ã«è¨å®ãããã¨ãã") ã追å ã§è¦å®ããã¦ããã

ãã¼ã¸ã§ã³
       ãã®é¢æ°ã¯ glibc ãã¼ã¸ã§ã³ 2.3.4 以éã§å©ç¨ã§ããã

æºæ
       POSIX.1-2001.

注æ
       ã¹ã¬ããã®ã¹ã±ã¸ã¥ã¼ãªã³ã°åªå度ãå¤æ´ããããã«å¿è¦ãªè¨±å¯ã
       å¤æ´ããå ´åã®å½±é¿ãããã³åã¹ã±ã¸ã¥ã¼ãªã³ã°ããªã·ã¼ã§èªããããåªå度
       ã®ç¯å²ã®è©³ç´°ã«ã¤ãã¦ã¯ã sched_setscheduler(2) ãåç§ã

é¢é£é ç®
       getrlimit(2), sched_get_priority_min(2), sched_setscheduler(2),
       pthread_attr_init(3), pthread_attr_setinheritsched(3),
       pthread_attr_setschedparam(3), pthread_attr_setschedpolicy(3),
       pthread_create(3), pthread_self(3), pthread_setschedparam(3),
       pthreads(7)

ãã®ææ¸ã«ã¤ãã¦
       ãã® man ãã¼ã¸ã¯ Linux man-pages ããã¸ã§ã¯ãã®ãªãªã¼ã¹ 3.51 ã®ä¸é¨
       ã§ãããããã¸ã§ã¯ãã®èª¬æã¨ãã°å ±åã«é¢ããæå ±ã¯
       http://www.kernel.org/doc/man-pages/ ã«æ¸ããã¦ããã



Linux                             2008-11-06           PTHREAD_SETSCHEDPRIO(3)