.\" Copyright (c) 1994, Henrik Vestergaard Draboel .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by Henrik Vestergaard Draboel. .\" 4. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %FreeBSD: src/lib/libc/sys/rtprio. 2, v 1.13. 2.9 2001/12/14 18:34:01 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man2/rtprio. 2, v 1.9 2001/12/23 00:03:42 horikawa Exp $ .Dd July 23, 1994 .Dt RTPRIO 2 .Os .Sh ¸íĪ .Nm rtprio .Nd À¯Æ¿¸®Æ¼³ª ÇÁ·Î¼¼½ºÀÇ ¸®¾óŸÀÓ / ¾ÆÀ̵¹ ¿ì¼± ¼øÀ§ÀÇ Ãëµæ°ú ¼öÁ¤ .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc .Sh ¼­½Ä .In sys/types.h .In sys/rtprio.h .Ft int .Fn rtprio "int function" "pid_t pid" "struct rtprio *rtp" .Sh ÇØ¼³ .Fn rtprio (À»)¸¦ »ç¿ëÇØ, ÇÁ·Î¼¼½ºÀÇ ¸®¾óŸÀÓ / ¾ÆÀ̵¹ ¿ì¼± ¼øÀ§¸¦ Ãëµæ ¶Ç´Â º¯°æÇÕ´Ï´Ù. .Pp .Fa function ±×¸®°í ½ÇÇàÇÏ´Â Á¶ÀÛÀ» ÁöÁ¤ÇÕ´Ï´Ù. ÇöÀçÀÇ ¿ì¼± ¼øÀ§¸¦ ÃëµæÇÏ·Á¸é RTP_LOOKUP, ¿ì¼± ¼øÀ§¸¦ ¼³Á¤ÇÏ·Á¸é RTP_SET ÀÔ´Ï´Ù. .Fa pid (Àº)´Â, ´ë»óÀÇ ÇÁ·Î¼¼½º¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ÇöÀçÀÇ ÇÁ·Î¼¼½º¸¦ ÁöÁ¤ÇÏ·Á¸é 0 À» »ç¿ëÇÕ´Ï´Ù. .Pp .Fa *rtp (Àº)´Â, ¿ì¼± ¼øÀ§¿Í ¿ì¼± ¼øÀ§ÀÇ Å¸ÀÔÀ» ÁöÁ¤Çϴµ¥ »ç¿ëÇÏ´Â struct rtprio ¸¦ °¡¸®Å²´Ù Æ÷ÀÎÅÍÀÔ´Ï´Ù. ÀÌ ±¸Á¶Ã¼´Â ´ÙÀ½ÀÇ ÇüÅÂÀÔ´Ï´Ù. .Bd -literal struct rtprio { u_short type; u_short prio; }; .Ed .Pp .Nm type ÀÇ °ªÀº, ¸®¾óŸÀÓ ¿ì¼± ¼øÀ§¿¡ ´ëÇØ¼­´Â RTP_PRIO_REALTIME, Åë»óÀÇ ¿ì¼± ¼øÀ§¿¡ ´ëÇØ¼­´Â RTP_PRIO_NORMAL, ¾ÆÀ̵¹ ¿ì¼± ¼øÀ§¿¡ ´ëÇØ¼­´Â RTP_PRIO_IDLE ÀÔ´Ï´Ù. .Nm prio ¿¡ ÀÇÇØ ÁöÁ¤ÇÏ´Â ¿ì¼± ¼øÀ§´Â, 0 À¸·ÎºÎÅÍ .Dv RTP_PRIO_MAX (Åë»óÀº 31) ÀÇ ¹üÀ§°¡ µË´Ï´Ù. 0 ÀÌ ÁöÁ¤ °¡´ÉÇÑ ÃÖ°íÀÇ ¿ì¼± ¼øÀ§ÀÔ´Ï´Ù. .Pp ¸®¾óŸÀÓ ¿ì¼± ¼øÀ§¿Í ¾ÆÀ̵¹ ¿ì¼± ¼øÀ§´Â, fork()¿Í exec()¸¦ ÅëÇØ¼­ °è½ÂµË´Ï´Ù. .Pp ¸®¾óŸÀÓ ÇÁ·Î¼¼½º´Â, ±× ÀÌ»óÀÇ ¿ì¼± ¼øÀ§¸¦ °¡Áö´Â ÇÁ·Î¼¼½º, ¶Ç´Â ³¢¾îµé¾î ¿¡ ÀÇÇØ¼­¸¸ ¿ì¼±±ÇÀ» ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾ÆÀ̵¹ ¿ì¼± ¼øÀ§ÀÇ ÇÁ·Î¼¼½º´Â, ´Ù¸¥ ¸®¾óŸÀÓ ¶Ç´Â Åë»óÀÇ ¿ì¼± ¼øÀ§ ÇÁ·Î¼¼½º°¡ ½ÇÇà °¡´ÉÇÏÁö ¾ÊÀ» ¶§¿¡¸¸ ½ÇÇàµË´Ï´Ù. ¿ì¼± ¼øÀ§ÀÇ ³ôÀº ¸®¾ó / ¾ÆÀ̵¹ÀÇ ÇÁ·Î¼¼½º´Â ¿ì¼± ¼øÀ§ÀÇ ³·Àº ¸®¾ó / ¾ÆÀ̵¹ÀÇ ÇÁ·Î¼¼½º·ÎºÎÅÍ ¿ì¼±±ÇÀ» ÃëµæÇÕ´Ï´Ù. ¿ì¼± ¼øÀ§°¡ µ¿ÀÏÇÑ ¸®¾ó / ¾ÆÀ̵¹ÀÇ ÇÁ·Î¼¼½º´Â ¶ó¿îµå·Îºó ¹æ½Ä¿¡¼­ ½ÇÇàµË´Ï´Ù. .Sh ¹Ýȯ°ª .Rv -std rtprio .Sh ¿¡·¯ .Fn rtprio (Àº)´Â ´ÙÀ½ÀÇ °æ¿ì¿¡ 󸮸¦ ½ÇÆÐÇÕ´Ï´Ù. .Bl -tag -width Er .It Bq Er EINVAL ÁöÁ¤µÇ¾ú´Ù .Fa prio ÇÏÁö¸¸ ¹üÀ§¿Ü¿´½À´Ï´Ù. .It Bq Er EPERM È£Ãâ ÇÁ·Î¼¼½º°¡ ¸®¾óŸÀÓ ¿ì¼± ¼øÀ§¸¦ ¼³Á¤ÇÒ ¼ö ¾ø½À´Ï´Ù. root ¸¸ÀÌ ÀÓÀÇÀÇ ÇÁ·Î¼¼½ºÀÇ ¸®¾ó ¿ì¼± ¼øÀ§¸¦ º¯°æÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù. root °¡ ¾Æ´Ñ À¯Àú´Â ÇöÀçÀÇ ÇÁ·Î¼¼½ºÀÇ ¾ÆÀ̵¹ ¿ì¼± ¼øÀ§¸¦ º¯°æÇÒ ¼ö ÀÖÀ» »ÓÀÔ´Ï´Ù. .It Bq Er ESRCH ÁöÁ¤ÀÇ ÇÁ·Î¼¼½º°¡ ¹ß°ßµÇÁö ¾Ê¾Ò½À´Ï´Ù. .El .Sh ÀúÀÚ .An -nosplit ¿À¸®Áö³¯ÀÇ ÀúÀÚ´Â .An Henrik Vestergaard Draboel Aq hvd@terry.ping.dk ÀÔ´Ï´Ù. .Fx ¿¡¼­ÀÇ ½ÇÀåÀº .An David Greenman ¿¡ ÀÇÇØ º»ÁúÀûÀ¸·Î °íÃÄ ½áÁ³½À´Ï´Ù. .Sh °ü·Ã Ç׸ñ .Xr nice 1 , .Xr ps 1 , .Xr rtprio 1 , .Xr setpriority 2 , .Xr nice 3 , .Xr renice 8