Scroll to navigation

sched_get_priority_max(2) System Calls Manual sched_get_priority_max(2)

이름

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.

에러

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 로 이메일을 보내주십시오.

2023년 3월 30일 Linux man-pages 6.05.01