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 int sched_get_priority_max(int policy); int sched_get_priority_min(int policy); sched_get_priority_max() , , policy. sched_get_priority_min() , , policy. policy: SCHED_FIFO, SCHED_RR, SCHED_OTHER, SCHED_BATCH, SCHED_IDLE SCHED_DEADLINE. sched(7). . , sched_get_priority_max(), , sched_get_priority_min(). Linux 1 99 SCHED_FIFO SCHED_RR 0 . . POSIX , , sched_get_priority_max() sched_get_priority_min(). POSIX.1 SCHED_FIFO SCHED_RR 32 . POSIX, sched_get_priority_max() sched_get_priority_min(), _POSIX_PRIORITY_SCHEDULING . 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 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) () Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . sched_get_priority_max(2)