![]() |
![]()
| ![]() |
![]()
̾??
?饤?֥???Standard C Library (libc, -lc) ????
????
???μ????Ǥϡ? pid ???ͤ????Ǥ??????硢?????ƥॳ?????Ͻ????˼??Ԥ??ޤ??? pid ?ǻ??ꤹ???ץ???????¸?ߤ??????ĸƤӽФ????ץ??????˥ѡ??ߥå??????????硢 ?ץ????? ID ?? pid ?????????ץ????????Ф??? ???????塼?????ˤȥ??????塼???ѥ?????????ꤷ?ޤ??? pid ?? 0 ?ξ??硢?ƤӽФ????ץ????????Ф??? ???????塼?????ˤȥ??????塼???ѥ?????????ꤷ?ޤ??? ???μ????Ǥϡ??????ץ????????̤Υץ??????Υ??????塼???ѥ?????? ???ıƶ????ڤܤ????Τ??Ȥ??????ˤϡ??????ߥ????????????Ȥ??? IEEE Std 1003.1b-1993 (“POSIX.1b”) ?˻??ꤵ???Ƥ??????ΤǤ??? ???????塼?????ˤ? <sched.h> ???ˤ????ޤ???
sched_param ??¤?Τ? <sched.h> ???????????Ƥ??ޤ??? struct sched_param { int sched_priority; /* ???????塼??ͥ?????? */ };
pid ?ǻ??ꤹ???ץ???????¸?ߤ??Ƥ??ġ? ?ƤӽФ????ץ??????˥ѡ??ߥå??????????硢 ?ץ????? ID ?? pid ?????????ץ??????Υ??????塼???ѥ???????֤??ޤ??? ???μ????Ǥϡ??????ץ????????̤Υץ??????Υ??????塼???ѥ?????? ???????????뤫?????ˤϡ??ɼ??ꥹ???????????Ȥ??? IEEE Std 1003.1b-1993 (“POSIX.1b”) ?˾??⤵???Ƥ??????ΤǤ??? pid ?? 0 ?ξ??硢?ƤӽФ????ץ??????Υ??????塼???ѥ???????֤??ޤ??? ???μ????Ǥϡ? pid ?????ξ??硢 sched_getscheduler ?????ƥॳ?????Ͻ????˼??Ԥ??ޤ??? ??????Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ???顼?????˼??Ԥ????ȡ? errno ???б??????ͤ????ꤷ?ޤ???
??Ϣ????sched_getparam(2), sched_get_priority_max(2), sched_get_priority_min(2), sched_rr_get_interval(2), sched_setparam(2), sched_yield(2) ????
|