.\" -*- coding: UTF-8 -*- .\" Copyright (C) Tom Bjorkholm & Markus Kuhn, 1996 .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\" 1996-04-01 Tom Bjorkholm .\" First version written .\" 1996-04-10 Markus Kuhn .\" revision .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH sched_get_priority_max 2 "30 março 2023" "Linux man\-pages 6.05.01" .SH NOME sched_get_priority_max, sched_get_priority_min \- determina a faixa estática de prioridades .SH BIBLIOTECA Biblioteca C Padrão (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSE .nf \fB#include \fP .PP \fBint sched_get_priority_max(int \fP\fIpolicy\fP\fB);\fP \fBint sched_get_priority_min(int \fP\fIpolicy\fP\fB);\fP .fi .SH DESCRIÇÃO \fBsched_get_priority_max\fP() returns the maximum priority value that can be used with the scheduling algorithm identified by \fIpolicy\fP. \fBsched_get_priority_min\fP() returns the minimum priority value that can be used with the scheduling algorithm identified by \fIpolicy\fP. Supported \fIpolicy\fP values are \fBSCHED_FIFO\fP, \fBSCHED_RR\fP, \fBSCHED_OTHER\fP, \fBSCHED_BATCH\fP, \fBSCHED_IDLE\fP, and \fBSCHED_DEADLINE\fP. Further details about these policies can be found in \fBsched\fP(7). .PP Processos com valores de prioridade numericamente maiores são agendados antes de processos com valores numericamente inferiores. Assim, o valor retornado por \fBsched_get_priority_max\fP() será maior que o valor retornado por \fBsched_get_priority_min\fP(). .PP Linux allows the static priority range 1 to 99 for the \fBSCHED_FIFO\fP and \fBSCHED_RR\fP policies, and the priority 0 for the remaining policies. Scheduling priority ranges for the various policies are not alterable. .PP .\" POSIX.1-2001, POSIX.1-2008 (XBD 2.8.4) Os intervalos de prioridade podem variar em outros sistemas POSIX, assim é uma boa idéia, ao se portar aplicações, usar um intervalo virtual e mapeá\-lo para o intervalo dado por \fBsched_get_priority_max\fP() e \fBsched_get_priority_min\fP(). A POSIX.1 requer uma diferença de, no mínimo, 32 entre os valores máximos e mínimos para \fBSCHED_FIFO\fP e \fBSCHED_RR\fP. .PP Sistemas POSIX nos quais estão disponíveis \fBsched_get_priority_max\fP() e \fBsched_get_priority_min\fP() definem \fB_POSIX_PRIORITY_SCHEDULING\fP na \fI\fP. .SH "VALOR DE RETORNO" On success, \fBsched_get_priority_max\fP() and \fBsched_get_priority_min\fP() return the maximum/minimum priority value for the named scheduling policy. On error, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH ERROS .TP \fBEINVAL\fP The argument \fIpolicy\fP does not identify a defined scheduling policy. .SH PADRÕES POSIX.1\-2008. .SH HISTÓRICO POSIX.1\-2001. .SH "VEJA TAMBÉM" .ad l .nh \fBsched_getaffinity\fP(2), \fBsched_getparam\fP(2), \fBsched_getscheduler\fP(2), \fBsched_setaffinity\fP(2), \fBsched_setparam\fP(2), \fBsched_setscheduler\fP(2), \fBsched\fP(7) .PP .SH TRADUÇÃO A tradução para português brasileiro desta página man foi criada por André Luiz Fassone e Marcelo Pereira da Silva . .PP Esta tradução é uma documentação livre; leia a .UR https://www.gnu.org/licenses/gpl-3.0.html Licença Pública Geral GNU Versão 3 .UE ou posterior para as condições de direitos autorais. Nenhuma responsabilidade é aceita. .PP Se você encontrar algum erro na tradução desta página de manual, envie um e-mail para .MT debian-l10n-portuguese@lists.debian.org a lista de discussão de tradutores .ME .