OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / glibc-linuxthreads / release / man3 / pthread_setschedparam.3
diff --git a/manual/glibc-linuxthreads/release/man3/pthread_setschedparam.3 b/manual/glibc-linuxthreads/release/man3/pthread_setschedparam.3
new file mode 100644 (file)
index 0000000..aaec04c
--- /dev/null
@@ -0,0 +1,156 @@
+.\"   Copyright (C) 1996-1999 Free Software Foundation, Inc.
+.\"
+.\"   Permission is granted to make and distribute verbatim copies of
+.\" this manual provided the copyright notice and this permission notice are
+.\" preserved on all copies.
+.\"
+.\"   Permission is granted to copy and distribute modified versions of
+.\" this manual under the conditions for verbatim copying, provided that
+.\" the entire resulting derived work is distributed under the terms of a
+.\" permission notice identical to this one.
+.\"
+.\"   Permission is granted to copy and distribute translations of this
+.\" manual into another language, under the above conditions for modified
+.\" versions, except that this permission notice may be stated in a
+.\" translation approved by the Foundation.
+.\"
+.\" Copyright (C) 1996 Xavier Leroy.
+.\"
+.\" Japanese Version Copyright (C) 2003 Suzuki Takashi
+.\"         all rights reserved.
+.\" Translated Sun Jan  5 14:05:30 JST 2003
+.\"         by Suzuki Takashi.
+.\"
+.\"WORD:    scheduling parameter    ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ñ¥é¥á¡¼¥¿
+.\"WORD:    scheduling policy   ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ý¥ê¥·¡¼
+.\"WORD:    non-realtime        ¥ê¥¢¥ë¥¿¥¤¥à¤Ç¤Ê¤¤
+.\"WORD:    realtime            ¥ê¥¢¥ë¥¿¥¤¥à
+.\"WORD:    round-robin         ¥é¥¦¥ó¥É¥í¥Ó¥óÊý¼°
+.\"WORD:    first-in first-out  ÀèÆþ¤ìÀè½Ð¤·¡ÊFIFO¡ËÊý¼°
+.\"
+.\"
+.TH PTHREAD_SETSCHEDPARAM 3 LinuxThreads
+
+
+.SH "̾Á°"
+pthread_setschedparam, pthread_getschedparam \- ¥¹¥ì¥Ã¥É¤Î¥¹¥±¡¼¥¸¥å¡¼¥ê¥ó¥°¥Ñ¥é¥á¡¼¥¿¤òÀ©¸æ¤¹¤ë
+
+.SH "½ñ¼°"
+.B #include <pthread.h>
+
+.BI "int pthread_setschedparam(pthread_t " target_thread ", int " policy ", const struct sched_param *" param ");"
+
+.BI "int pthread_getschedparam(pthread_t " target_thread ", int *" policy ", struct sched_param *" param ");"
+
+.SH "ÀâÌÀ"
+
+.B "pthread_setschedparam"
+¤Ï¥¹¥ì¥Ã¥É
+.I "target_thread"
+¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ñ¥é¥á¡¼¥¿¤ò
+.I "policy"
+¤È
+.I "param"
+¤Ç¼¨¤µ¤ì¤ëÃͤËÊѹ¹¤¹¤ë¡£
+.I "policy"
+¤Ï
+.B "SCHED_OTHER"
+( Ä̾ï¤Î¡¢¥ê¥¢¥ë¥¿¥¤¥à¤Ç¤Ê¤¤¥¹¥±¥¸¥å¡¼¥ê¥ó¥° ) ¡¢
+.B "SCHED_RR"
+( ¥é¥¦¥ó¥É¥í¥Ó¥óÊý¼°¤Î¥ê¥¢¥ë¥¿¥¤¥à¥¹¥±¥¸¥å¡¼¥ê¥ó¥° ) ¡¢
+.B "SCHED_FIFO"
+( ÀèÆþ¤ìÀè½Ð¤· (FIFO) Êý¼°¤Î¥ê¥¢¥ë¥¿¥¤¥à¥¹¥±¥¸¥å¡¼¥ê¥ó¥° )
+¤Î¤¤¤º¤ì¤«¤ÎÃͤò¤È¤ë¡£
+.I "param"
+¤Ï 2 ¤Ä¤Î¥ê¥¢¥ë¥¿¥¤¥à¥Ý¥ê¥·¡¼¤ËÂФ¹¤ë
+¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥ÀèÅÙ¤òɽ¤¹¡£
+¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ý¥ê¥·¡¼¤Ë´Ø¤¹¤ë¤µ¤é¤Ê¤ë¾ðÊó¤Ï
+.BR "sched_setpolicy" (2)
+¤ò»²¾È¤Î¤³¤È¡£
+
+¥ê¥¢¥ë¥¿¥¤¥à¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ý¥ê¥·¡¼¤Ç¤¢¤ë
+.B "SCHED_RR"
+¤È
+.B "SCHED_FIFO"
+¤Ï¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¸¢¸Â¤ò¤â¤Ã¤¿¥×¥í¥»¥¹¤Ë¸Â¤Ã¤Æ»ÈÍѤǤ­¤ë¡£
+
+.B "pthread_getschedparam"
+¤Ï¥¹¥ì¥Ã¥É
+.I "target_thread"
+¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ý¥ê¥·¡¼¤È
+¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥Ñ¥é¥á¡¼¥¿¤ò¼èÆÀ¤·¡¢
+¤½¤ì¤¾¤ì
+.I "policy"
+¤È 
+.I "param"
+¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤¹¤ë¡£
+
+.SH "ÊÖ¤êÃÍ"
+.B "pthread_setschedparam"
+¤ª¤è¤Ó
+.B "pthread_getschedparam"
+¤ÏÀ®¸ù¤¹¤ë¤È 0 ¤òÊÖ¤·¡¢¥¨¥é¡¼¤Ê¤é¤ÐÈó 0 ¤Î¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹¡£
+
+.SH "¥¨¥é¡¼"
+¥¨¥é¡¼¤Î¾ì¹ç¡¢
+.B "pthread_setschedparam"
+¤Ï¼¡¤Î¤è¤¦¤Ê¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹:
+.RS
+.TP
+.B "EINVAL"
+.I "policy"
+¤¬
+.BR "SCHED_OTHER" ¡¢
+.BR "SCHED_RR" ¡¢
+.B "SCHED_FIFO"
+¤Î¤¤¤º¤ì¤Ç¤â¤Ê¤¤¡£
+
+.TP
+.B "EINVAL"
+»ØÄꤵ¤ì¤¿¥Ý¥ê¥·¡¼¤Ç¤Ï
+.I "param"
+¤Ç»ØÄꤵ¤ì¤¿Í¥ÀèÅ٥ѥé¥á¡¼¥¿¤ÏÍ­¸ú¤Ç¤Ï¤Ê¤¤¡£
+
+.TP
+.B "EPERM"
+¸Æ¤Ó½Ð¤·¥×¥í¥»¥¹¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¸¢¸Â¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£
+
+.TP
+.B "ESRCH"
+¥¹¥ì¥Ã¥É
+.I "target_thread"
+¤Ï̵¸ú¤Þ¤¿¤Ï¤¹¤Ç¤Ë½ªÎ»¤·¤Æ¤¤¤ë¡£
+
+.TP
+.B "EFAULT"
+.I "param"
+¤¬»Ø¤·¼¨¤¹Îΰè¤Ï¥×¥í¥»¥¹¤Î¥á¥â¥ê¶õ´Ö³°¤ÎÎΰè¤Ç¤¢¤ë¡£
+.RE
+
+¥¨¥é¡¼¤Î¾ì¹ç¡¢
+.B "pthread_getschedparam"
+¤Ï¼¡¤Î¤è¤¦¤Ê¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹:
+.RS
+.TP
+.B "ESRCH"
+¥¹¥ì¥Ã¥É
+.I "target_thread"
+¤Ï̵¸ú¤Þ¤¿¤Ï¤¹¤Ç¤Ë½ªÎ»¤·¤Æ¤¤¤ë¡£
+
+.TP
+.B "EFAULT"
+.I "policy"
+¤Þ¤¿¤Ï
+.I "param"
+¤¬»Ø¤·¼¨¤¹Îΰè¤Ï¥×¥í¥»¥¹¤Î¥á¥â¥ê¶õ´Ö³°¤ÎÎΰè¤Ç¤¢¤ë¡£
+.RE
+
+.SH "Ãø¼Ô"
+Xavier Leroy <Xavier.Leroy@inria.fr>
+
+.SH "´ØÏ¢¹àÌÜ"
+.BR "sched_setscheduler" (2),
+.BR "sched_getscheduler" (2),
+.BR "sched_getparam" (2),
+.BR "pthread_attr_setschedpolicy" (3),
+.BR "pthread_attr_setschedparam" (3).