.\" -*- 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 Octubre 2022" "Páginas de manual de Linux 6.03" .SH NOMBRE sched_get_priority_max, sched_get_priority_min \- obtienen el rango de prioridades estáticas .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBint sched_get_priority_max(int \fP\fIpolitica\fP\fB);\fP \fBint sched_get_priority_min(int \fP\fIpolitica\fP\fB);\fP .fi .SH DESCRIPCIÓN \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 Los procesos con valores de prioridad numéricamente más altos se planifican para antes que los procesos con valores de prioridad numéricamente más bajos. Así, el valor devuelto por \fBsched_get_priority_max\fP() será mayor que el devuelto 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) The range of scheduling priorities may vary on other POSIX systems, thus it is a good idea for portable applications to use a virtual priority range and map it to the interval given by \fBsched_get_priority_max\fP() and \fBsched_get_priority_min\fP() POSIX.1 requires a spread of at least 32 between the maximum and the minimum values for \fBSCHED_FIFO\fP and \fBSCHED_RR\fP. .PP Los sistemas POSIX en los cuales están disponibles \fBsched_get_priority_max\fP() y \fBsched_get_priority_min\fP() definen \fB_POSIX_PRIORITY_SCHEDULING\fP en \fI\fP. .SH "VALOR DEVUELTO" 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 ERRORES .TP \fBEINVAL\fP The argument \fIpolicy\fP does not identify a defined scheduling policy. .SH ESTÁNDARES POSIX.1\-2001, POSIX.1\-2008. .SH "VÉASE TAMBIÉN" .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 TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .