OSDN Git Service

(split) Regenerate corrensponding release pages for draft pages updated in the previo...
[linuxjm/LDP_man-pages.git] / release / man2 / sched_yield.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) Tom Bjorkholm & Markus Kuhn, 1996
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" 1996-04-01 Tom Bjorkholm <tomb@mydata.se>
26 .\"            First version written
27 .\" 1996-04-10 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de>
28 .\"            revision
29 .\"
30 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
31 .\"         all rights reserved.
32 .\" Translated Sun Feb 23 22:42:36 JST 1997
33 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
34 .\" Updated 2008-11-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.13
35 .\"
36 .\"WORD:        yield                   ¶õ¤±ÅϤ¹
37 .\"WORD:        block                   ÃæÃÇ(block)
38 .\"WORD:        process                 ¥×¥í¥»¥¹
39 .\"WORD:        processor               ¥×¥í¥»¥Ã¥µ¡¼
40 .\"WORD:        queue                   ¥­¥å¡¼
41 .\"WORD:        static                  ÀÅŪ
42 .\"WORD:        priority                ¥×¥é¥¤¥ª¥ê¥Æ¥£
43 .\"WORD:        scheduling              ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°
44 .\"
45 .TH SCHED_YIELD 2 2008-10-18 "Linux" "Linux Programmer's Manual"
46 .SH Ì¾Á°
47 sched_yield \- ¥×¥í¥»¥Ã¥µ¡¼¤ò¶õ¤±ÅϤ¹(yield)
48 .SH ½ñ¼°
49 .B #include <sched.h>
50 .sp
51 .B int sched_yield(void);
52 .SH ÀâÌÀ
53 .BR sched_yield ()
54 ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ç¡¢¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤¬ CPU ¤Î»ÈÍѸ¢¤ò¼êÊü¤¹¤³¤È¤¬¤Ç¤­¤ë¡£
55 ¤½¤Î¥¹¥ì¥Ã¥É¤Ï¡¢¤½¤Î¥¹¥ì¥Ã¥É¤ÎÀÅŪ¥×¥é¥¤¥ª¥ê¥Æ¥£¤Î¥­¥å¡¼¤ÎËöÈø¤Ë
56 °ÜÆ°¤·¡¢¿·¤·¤¤¥¹¥ì¥Ã¥É¤¬Áö¤ê»Ï¤á¤ë¡£
57 .SH ÊÖ¤êÃÍ
58 À®¸ù¤·¤¿¾ì¹ç¤Ï
59 .BR sched_yield ()
60 ¤Ï 0 ¤òÊÖ¤¹¡£
61 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
62 .I errno
63 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
64 .SH ¥¨¥é¡¼
65 Linux ¤Î¼ÂÁõ¤Ç¤Ï¡¢
66 .BR sched_yield ()
67 ¤Ï¾ï¤ËÀ®¸ù¤¹¤ë¡£
68 .SH ½àµò
69 POSIX.1-2001.
70 .SH Ãí°Õ
71 .BR sched_yield ()
72 ¤ò¸Æ¤Ó½Ð¤·¤¿»þÅÀ¤ÇºÇÂçÍ¥ÀèÅ٤Υꥹ¥È¤ÎÃæ¤Ë¸Æ¤Ó½Ð¤·¸µ¤Î¥¹¥ì¥Ã¥É¤·¤«
73 ¸ºß¤·¤Ê¤±¤ì¤Ð¡¢¤½¤Î¥¹¥ì¥Ã¥É¤Ï¸Æ¤Ó½Ð¤·¸å¤âÁö¤ê³¤±¤ë¤³¤È¤Ë¤Ê¤ë¡£
74
75 POSIX ¥·¥¹¥Æ¥à¤Ç
76 .BR sched_yield ()
77 ¤Ï \fI<unistd.h>\fP ¤Ë
78 .B _POSIX_PRIORITY_SCHEDULING
79 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß»ÈÍѲÄǽ¤Ç¤¢¤ë¡£
80
81 .BR sched_yield ()
82 ¤òÀïάŪ¤Ë¸Æ¤Ó½Ð¤¹¤³¤È¤Ç¡¢(¶ËÅÙ¤Ë) ¶¥¹ç¤¹¤ë¥ê¥½¡¼¥¹ (mutex ¤Ê¤É)
83 ¤ò¸Æ¤Ó½Ð¤·¸µ¤¬²òÊü¤·¤¿ºÝ¤Ë¾¤Î¥¹¥ì¥Ã¥É¤ä¥×¥í¥»¥¹¤Ë¼Â¹Ôµ¡²ñ¤òÍ¿¤¨¤ë¤³¤È¤Ç¡¢
84 À­Ç½¤ò¾å¤²¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
85 .BR sched_yield ()
86 ¤òɬÍפâ¤Ê¤¤¤Î¤Ë¸Æ¤Ó½Ð¤·¤¿¤ê¡¢ÉÔŬÀڤʾìÌÌ (Î㤨¤Ð¡¢Â¾¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°
87 ÂоݤȤʤ륹¥ì¥Ã¥É¤¬É¬ÍפȤ¹¤ë¥ê¥½¡¼¥¹¤ò¸Æ¤Ó½Ð¤·¸µ¤¬ÊÝ»ý¤·¤¿¤Þ¤Þ¤Î¾õÂÖ)
88 ¤Ç¸Æ¤Ó½Ð¤·¤¿¤ê¤¹¤ë¤Î¤ÏÈò¤±¤ë¤³¤È¡£¤Ê¤¼¤Ê¤é¡¢
89 .BR sched_yield ()
90 ¤Î¸Æ¤Ó½Ð¤·¤è¤êÉÔɬÍפʥ³¥ó¥Æ¥­¥¹¥È¥¹¥¤¥Ã¥Á¤¬µ¯¤³¤ê¡¢¥·¥¹¥Æ¥àÀ­Ç½¤¬
91 Îô²½¤¹¤ë·ë²Ì¤Ë¤Ê¤ë¤«¤é¤Ç¤¢¤ë¡£
92 .SH ´ØÏ¢¹àÌÜ
93 Linux ¤Î¥¹¥±¡¼¥¸¥å¥ê¥ó¥°(scheduling)¤Ë¤Ä¤¤¤Æ¤Ï
94 .BR sched_setscheduler (2)
95 ¤ò»²¾È¤»¤è¡£
96 .PP
97 .I Programming for the real world \- POSIX.4
98 by Bill O. Gallmeister, O'Reilly & Associates, Inc., ISBN 1-56592-074-0