pthread_schedparam.3 (3e9ed1efb85a632c2b4bee70f3ae37a464aba6ad) | pthread_schedparam.3 (b6413b6db8756c1ecae5e575e6516f811966046f) |
---|---|
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 13 unchanged lines hidden (view full) --- 22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27.\" 28.\" $FreeBSD$ 29.\" | 1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 13 unchanged lines hidden (view full) --- 22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27.\" 28.\" $FreeBSD$ 29.\" |
30.Dd October 16, 2006 | 30.Dd August 17, 2018 |
31.Dt PTHREAD_SCHEDPARAM 3 32.Os 33.Sh NAME 34.Nm pthread_setschedparam , 35.Nm pthread_getschedparam 36.Nd thread scheduling parameter manipulation 37.Sh LIBRARY 38.Lb libpthread 39.Sh SYNOPSIS 40.In pthread.h 41.Ft int 42.Fn pthread_setschedparam "pthread_t thread" "int policy" "const struct sched_param *param" 43.Ft int | 31.Dt PTHREAD_SCHEDPARAM 3 32.Os 33.Sh NAME 34.Nm pthread_setschedparam , 35.Nm pthread_getschedparam 36.Nd thread scheduling parameter manipulation 37.Sh LIBRARY 38.Lb libpthread 39.Sh SYNOPSIS 40.In pthread.h 41.Ft int 42.Fn pthread_setschedparam "pthread_t thread" "int policy" "const struct sched_param *param" 43.Ft int |
44.Fn pthread_getschedparam "pthread_t thread" "int *policy" "struct sched_param *param" | 44.Fn pthread_getschedparam "pthread_t thread" "int *restrict policy" "struct sched_param *restrict param" |
45.Sh DESCRIPTION 46The 47.Fn pthread_setschedparam 48and 49.Fn pthread_getschedparam 50functions set and get the scheduling parameters of individual threads. 51The scheduling policy for a thread can either be 52.Dv SCHED_FIFO --- 48 unchanged lines hidden --- | 45.Sh DESCRIPTION 46The 47.Fn pthread_setschedparam 48and 49.Fn pthread_getschedparam 50functions set and get the scheduling parameters of individual threads. 51The scheduling policy for a thread can either be 52.Dv SCHED_FIFO --- 48 unchanged lines hidden --- |