libthr.3 (82aa34e6fa1cd5a4ad401383522daf51412ea4b2) libthr.3 (4992013f8f8ab9d5bb5f31edb0f98d681d671d5d)
1.\" Copyright (c) 2005 Robert N. M. Watson
2.\" Copyright (c) 2014,2015 The FreeBSD Foundation, Inc.
3.\" All rights reserved.
4.\"
5.\" Part of this documentation was written by
6.\" Konstantin Belousov <kib@FreeBSD.org> under sponsorship
7.\" from the FreeBSD Foundation.
8.\"

--- 104 unchanged lines hidden (view full) ---

113is not executed.
114This is controlled by the
115.Ev LIBPTHREAD_YIELDLOOPS
116environment variable.
117.Pp
118If both the spin and yield loops
119failed to acquire the lock, the thread is taken off the CPU and
120put to sleep in the kernel with the
1.\" Copyright (c) 2005 Robert N. M. Watson
2.\" Copyright (c) 2014,2015 The FreeBSD Foundation, Inc.
3.\" All rights reserved.
4.\"
5.\" Part of this documentation was written by
6.\" Konstantin Belousov <kib@FreeBSD.org> under sponsorship
7.\" from the FreeBSD Foundation.
8.\"

--- 104 unchanged lines hidden (view full) ---

113is not executed.
114This is controlled by the
115.Ev LIBPTHREAD_YIELDLOOPS
116environment variable.
117.Pp
118If both the spin and yield loops
119failed to acquire the lock, the thread is taken off the CPU and
120put to sleep in the kernel with the
121.Xr umtx 2
121.Xr _umtx_op 2
122syscall.
123The kernel wakes up a thread and hands the ownership of the lock to
124the woken thread when the lock becomes available.
125.Sh THREAD STACKS
126Each thread is provided with a private user-mode stack area
127used by the C runtime.
128The size of the main (initial) thread stack is set by the kernel, and is
129controlled by the

--- 101 unchanged lines hidden (view full) ---

231This should be taken into account when interpreting
232.Xr ktrace 1
233logs.
234.Sh SEE ALSO
235.Xr ktrace 1 ,
236.Xr ld-elf.so.1 1 ,
237.Xr getrlimit 2 ,
238.Xr errno 2 ,
122syscall.
123The kernel wakes up a thread and hands the ownership of the lock to
124the woken thread when the lock becomes available.
125.Sh THREAD STACKS
126Each thread is provided with a private user-mode stack area
127used by the C runtime.
128The size of the main (initial) thread stack is set by the kernel, and is
129controlled by the

--- 101 unchanged lines hidden (view full) ---

231This should be taken into account when interpreting
232.Xr ktrace 1
233logs.
234.Sh SEE ALSO
235.Xr ktrace 1 ,
236.Xr ld-elf.so.1 1 ,
237.Xr getrlimit 2 ,
238.Xr errno 2 ,
239.Xr umtx 2 ,
239.Xr _umtx_op 2 ,
240.Xr dlclose 3 ,
241.Xr dlopen 3 ,
242.Xr getenv 3 ,
243.Xr pthread_attr 3 ,
244.Xr pthread_attr_setstacksize 3 ,
245.Xr pthread_create 3 ,
246.Xr signal 3 ,
247.Xr atomic 9

--- 13 unchanged lines hidden ---
240.Xr dlclose 3 ,
241.Xr dlopen 3 ,
242.Xr getenv 3 ,
243.Xr pthread_attr 3 ,
244.Xr pthread_attr_setstacksize 3 ,
245.Xr pthread_create 3 ,
246.Xr signal 3 ,
247.Xr atomic 9

--- 13 unchanged lines hidden ---