GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SCHED_SETPARAM(2) FreeBSD System Calls Manual SCHED_SETPARAM(2)

̾??

sched_setparam, sched_getparam???????塼???ѥ??᡼???????? / ????

Standard C Library (libc, -lc)

<sched.h> int (pid_t pid, const struct sched_param *param) int sched_getparam(pid_t pid, struct sched_param *param)

sched_setparam() ?????ƥॳ?????ϡ? pid ?ǻ??ꤹ???ץ??????Υ??????塼???ѥ??᡼?????? param ???ؤ???¤?? sched_param ?λ??ꤹ???ͤ????ꤷ?ޤ??? ??¤?? param ?Υ????? sched_priority ???ͤϡ? pid ?ǻ??ꤹ???ץ??????θ??ߤΥ??????塼???????Ѥ? ͥ???????ϰ??? (ξü?ޤ?) ???????Ǥ???ɬ?פ??????ޤ??? ͥ?????̤ο??ͤ??⤤?ۤ?ͥ?????̤??⤤???Ȥ?ɽ???ޤ???

???μ????Ǥϡ? pid ???ͤ????ξ??硢?????ƥॳ?????Ͻ????˼??Ԥ??ޤ???

pid ?ǻ??ꤹ???ץ???????¸?ߤ??????? ?ƤӽФ????ץ??????˥ѡ??ߥå????󤬤??????硢 ?ץ????? ID ?? pid ?????????ץ????????Ф??ƥ??????塼???ѥ??᡼???????ꤷ?ޤ???

pid ?? 0 ?ξ??硢?ƤӽФ????ץ????????Ф??? ???????塼???ѥ??᡼???????ꤷ?ޤ???

???μ????Ǥϡ??????ץ????????̤Υץ??????Υ??????塼???ѥ??᡼???? ???ıƶ????ڤܤ????Τ??Ȥ??????ˤϡ??????ߥ????????????Ȥ??? IEEE Std 1003.1b-1993 (“POSIX.1b”) ?˻??ꤵ???Ƥ??????ΤǤ???

???????åȥץ??????ϡ??¹????ˤ????¹????Ǥʤ??ˤ??衢 ͥ?????̤??????????ޤ??Ϥ????⤤?? ¾?Τ??٤Ƥμ¹Բ?ǽ?ʥץ????????¹Ԥ??????褦?˥??????塼?뤵?줿???ǡ? ?¹Ԥ??Ƴ????ޤ???

pid ?????ǻ??ꤹ???ץ???????ͥ?????̤??? ?Ǥ?ͥ?????̤??㤤?¹????Υץ???????ͥ?????̤????⤯???ꤵ???Ƥ??ꡢ ???????????Υץ??????μ¹Խ??????Ǥ??Ƥ??????硢 pid ?????ǻ??ꤹ???ץ??????? ͥ?????̤??Ǥ??㤤?¹????Υץ????????ץꥨ???ץȤ??ޤ??? Ʊ???褦?ˡ? () ???ƤӽФ??Ƥ????ץ???????????ͥ?????̤??? 1 ?Ĥޤ???ʣ???ζ??Ǥʤ??ץ??????ꥹ?Ȥ?ͥ?????̤????㤯???ꤹ?????硢 ͥ?????̤??Ǥ??⤤?ꥹ?Ȥ???Ƭ?Υץ??????? ?ƤӽФ????ץ????????ץꥨ???ץȤ??ޤ??? ???Τ褦?ˡ????????Υ??????Ǥ⡢ ͥ?????̤ι⤤?ץ????????¹Ԥ????Ƥ??ޤ??ޤǡ? ???Υץ????????׵ᤷ??ͥ???????ѹ??δ?λ???Τ????????ʤ???ǽ?????????ޤ???

???μ????Ǥϡ? pid ?ǻ??ꤹ???ץ??????θ??ߤΥ??????塼?????ˤ??̾??Υ????ॷ?????????? (SCHED_OTHER; POSIX ???????Ǥʤ??????? SCHED_NORMAL) ?Ǥ??뤫?????ɥ????? (POSIX ???????Ǥʤ??????? SCHED_IDLE) ?Ǥ????ʤ顢 ????ư???ϡ??ºߤ????ꥢ?륿????ͥ?????̤??????㤤ͥ?????̤? SCHED_RR ?ǥץ????????¹Ԥ????Ƥ??????Τ褦?ˤʤ??ޤ???

() ?ؿ??ϡ? pid ?ǻ??ꤹ???ץ??????Υ??????塼???ѥ??᡼???? param ???ؤ? sched_param ??¤?Τ????????֤??ޤ???

pid ?ǻ??ꤹ???ץ???????¸?ߤ??Ƥ??ġ? ?ƤӽФ????ץ??????˥ѡ??ߥå????󤬤??????硢 ?ץ????? ID ?? pid ?????????ץ??????Υ??????塼???ѥ??᡼?????֤??ޤ???

???μ????Ǥϡ??????ץ????????̤Υץ??????Υ??????塼???ѥ??᡼???? ???????????뤫?????ˤϡ??ɼ??ꥹ???????????Ȥ??? IEEE Std 1003.1b-1993 (“POSIX.1b”) ?˾??⤵???Ƥ??????ΤǤ???

pid ?? 0 ?ξ??硢?ƤӽФ????ץ??????Υ??????塼???ѥ??᡼?????֤??ޤ??? ???μ????Ǥϡ? pid ?????ξ??硢 sched_getparam ?????ƥॳ?????Ͻ????˼??Ԥ??ޤ???

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 ???б??????ͤ????ꤷ?ޤ?:

[ENOSYS]
?????ƥ??Ϥ??ε?ǽ?򥵥ݡ??Ȥ????褦?˹????????Ƥ??ޤ?????
[EPERM]
?׵ᤷ?Ƥ????ץ??????ϡ? IEEE Std 1003.1b-1993 (“POSIX.1b”) ?Ǿ??⤵???Ƥ????ѡ??ߥå??????????äƤ??ޤ?????
[ESRCH]
pid ?ǻ??ꤷ???ץ????????б??????ץ??????????Ĥ????ޤ?????
[EINVAL]
() ?ǡ??׵ᤵ?줿 1 ?İʾ??Υ??????塼???ѥ??᡼???????????? pid ?Υ??????塼?????ˤ????????줿?ϰϤγ?¦?ˤ????ޤ???

sched_get_priority_max(2), sched_get_priority_min(2), sched_getscheduler(2), sched_rr_get_interval(2), sched_setscheduler(2), sched_yield(2)

sched_setparam() ?????ƥॳ?????? sched_getparam() ?????ƥॳ?????? IEEE Std 1003.1b-1993 (“POSIX.1b”) ??Ŭ?礷?Ƥ??ޤ???

March 12, 1998 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 2 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.