.\" -*- coding: UTF-8 -*- .\" Copyright (C) Tom Bjorkholm & Markus Kuhn, 1996 .\" .\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, see .\" . .\" %%%LICENSE_END .\" .\" 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 "15 setembro 2017" Linux "Manual do Programador do Linux" .SH NOME sched_get_priority_max, sched_get_priority_min \- determina a faixa estática de prioridades .SH SINOPSE \fB#include \fP .PP \fBint sched_get_priority_max(int \fP\fIpolicy\fP\fB);\fP .PP \fBint sched_get_priority_min(int \fP\fIpolicy\fP\fB);\fP .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" Em caso de sucesso, \fBsched_get_priority_max\fP() e \fBsched_get_priority_min\fP() retornam os valores da prioridade máxima/mínima para a política de agendamento nomeada. Caso contrário, \-1 é devolvido e \fIerrno\fP é selecionado adequadamente. .SH ERROS .TP \fBEINVAL\fP The argument \fIpolicy\fP does not identify a defined scheduling policy. .SH "DE ACORDO COM" POSIX.1\-2001, POSIX.1\-2008. .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) .SH COLOFÃO Esta página faz parte da versão 5.10 do projeto Linux \fIman\-pages\fP. Uma descrição do projeto, informações sobre relatórios de bugs e a versão mais recente desta página podem ser encontradas em \%https://www.kernel.org/doc/man\-pages/. .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 .