Man page - sched_get_priority_max(2)

Packages contains this manual

Available languages:

en fr pt_BR es pl ko ja ru ro de

Manual

sched_get_priority_max

์ด ๋ฆ„
๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ
์š” ์•ฝ
์„ค ๋ช…
๋ฐ˜ ํ™˜ ๊ฐ’
์— ๋Ÿฌ
ํ‘œ ์ค€
์ด ๋ ฅ
์ถ” ๊ฐ€ ์ฐธ ์กฐ
๋ฒˆ ์—ญ

์ด ๋ฆ„

sched_get_priority_max, sched_get_priority_min - ์ • ์  ์„  ํ–‰ ๋ฒ” ์œ„ ๋ฅผ ๊ฐ€ ์ง„ ๋‹ค .

๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ

ํ‘œ ์ค€ C ๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ ( libc , -lc )

์š” ์•ฝ

#include <sched.h>

int sched_get_priority_max(int policy );
int sched_get_priority_min(int
policy );

์„ค ๋ช…

sched_get_priority_max () returns the maximum priority value that can be used with the scheduling algorithm identified by policy . sched_get_priority_min () returns the minimum priority value that can be used with the scheduling algorithm identified by policy . Supported policy values are SCHED_FIFO , SCHED_RR , SCHED_OTHER , SCHED_BATCH , SCHED_IDLE , and SCHED_DEADLINE . Further details about these policies can be found in sched (7).

์ˆ˜ ์น˜ ์  ์œผ ๋กœ ๋†’ ์€ ์„  ํ–‰ ๊ฐ’ ์˜ ํ”„ ๋กœ ์„ธ ์Šค ๋Š” ์ˆ˜ ์น˜ ์  ์œผ ๋กœ ๋‚ฎ ์€ ์„  ํ–‰ ๊ฐ’ ์˜ ํ”„ ๋กœ ์„ธ ์Šค ๋ณด ๋‹ค ๋จผ ์ € ์˜ˆ ์ • ๋œ ๋‹ค . ๊ทธ ๋ž˜ ์„œ sched_get_priority_max ()์— ์˜ ํ•ด ๋ฐ˜ ํ™˜ ๋˜ ๋Š” ๊ฐ’ ์€ sched_get_priority_min ()์— ์˜ ํ•ด ๋ฐ˜ ํ™˜ ๋˜ ๋Š” ๊ฐ’ ๋ณด ๋‹ค ํฌ ๊ฒŒ ๋œ ๋‹ค .

Linux allows the static priority range 1 to 99 for the SCHED_FIFO and SCHED_RR policies, and the priority 0 for the remaining policies. Scheduling priority ranges for the various policies are not alterable.

์šฐ ์„  ๊ถŒ ์˜ˆ ์•ฝ ์˜ ์ˆ˜ ์ค€ ์€ ๋‹ค ๋ฅธ POSIX ์‹œ ์Šค ํ…œ ์— ์„  ๋‹ค ์–‘ ํ•˜ ๋‹ค . ๊ทธ ๋Ÿฌ ๋ฏ€ ๋Ÿฌ ์ด ์‹ ์–ด ํ”Œ ๋ฆฌ ์ผ€ ์ด ์…˜ ์ด ๊ฐ€ ์ƒ ์šฐ ์„  ๊ถŒ ์ˆ˜ ์ค€ ์„ ์‚ฌ ์šฉ ํ•˜ ๊ณ  , sched_get_priority_max ()์™€ sched_get_priority_min ()์œผ ๋กœ ์ฃผ ์–ด ์ง„ ๊ฐ„ ๊ฒฉ ์œผ ๋กœ ๋งต ํ•‘ ํ•˜ ๋Š” ๊ฒƒ ์€ ์ข‹ ์€ ๊ฒƒ ์ด ๋‹ค . POSIX.1๋Š” SCHED_FIFO and SCHED_RR ๋ฅผ ์œ„ ํ•œ ์ตœ ๋Œ€ ๊ฐ’ ๊ณผ ์ตœ ์†Œ ๊ฐ’ ์‚ฌ ์ด ์˜ ์  ์–ด ๋„ 32์˜ ๋„“ ์ด ๊ฐ€ ํ•„ ์š” ํ•˜ ๋‹ค .

POSIX systems on which sched_get_priority_max () and sched_get_priority_min () are available define _POSIX_PRIORITY_SCHEDULING in <unistd.h> .

๋ฐ˜ ํ™˜ ๊ฐ’

On success, sched_get_priority_max () and sched_get_priority_min () return the maximum/minimum priority value for the named scheduling policy. On error, -1 is returned, and errno is set to indicate the error.

์— ๋Ÿฌ

EINVAL

The argument policy does not identify a defined scheduling policy.

ํ‘œ ์ค€

POSIX.1-2008.

์ด ๋ ฅ

POSIX.1-2001.

์ถ” ๊ฐ€ ์ฐธ ์กฐ

sched_getaffinity (2), sched_getparam (2), sched_getscheduler (2), sched_setaffinity (2), sched_setparam (2), sched_setscheduler (2), sched (7)

๋ฒˆ ์—ญ

์ด ๋งค ๋‰ด ์–ผ ํŽ˜ ์ด ์ง€ ์˜ ํ•œ ๊ตญ ์–ด ๋ฒˆ ์—ญ ์€ ๋‹ค ์Œ ์— ์˜ ํ•ด ํŽธ ์ง‘ ๋˜ ์—ˆ ์Šต ๋‹ˆ ๋‹ค : ASPLINUX <man@asp-linux.co.kr>

์ด ๋ฒˆ ์—ญ ์€ ๋ฌด ๋ฃŒ ๋ฌธ ์„œ ์ž… ๋‹ˆ ๋‹ค . ์ € ์ž‘ ๊ถŒ ์กฐ ๊ฑด ์— ๋Œ€ ํ•ด ์„œ ๋Š” GNU General Public License ๋ฒ„ ์ „ 3 ์ด ์ƒ ์„ ์ฝ ์œผ ์‹ญ ์‹œ ์˜ค . ์ฑ… ์ž„ ์ด ์—† ์Šต ๋‹ˆ ๋‹ค .

์ด ๋งค ๋‰ด ์–ผ ํŽ˜ ์ด ์ง€ ์˜ ๋ฒˆ ์—ญ ์— ์„œ ์˜ค ๋ฅ˜ ๋ฅผ ๋ฐœ ๊ฒฌ ํ•˜ ๋ฉด translation-team-ko@googlegroups.com ๋กœ ์ด ๋ฉ” ์ผ ์„ ๋ณด ๋‚ด ์ฃผ ์‹ญ ์‹œ ์˜ค .