FreeBSD Threading Documentation
wagner at luthien.in-berlin.de
Sun Feb 10 23:35:05 PST 2008
On Sun, Feb 10, 2008 at 07:13:25PM -0800, Alfred Perlstein wrote:
> * Olaf Wagner <wagner at luthien.in-berlin.de> [080210 18:37] wrote:
> > I haven't found much, so I think I'll have to ask here after all:
> > Is there any overview article or design document about the
> > different threading implementations in FreeBSD?
> There have been a few approaches taken over the years,
> an N-1(libc_r), N-M(libkse) and N-N (libthr).
> Currently FreeBSD supports pthreads using libthr which
> is pretty much the same way that Solaris and Linux support
That's about how much I had already figured out :-)
I am looking for something a little bit longer (let's
say about 5-12 pages) which discusses the design and compares
two or more of the solutions. Or is the source code the
only available documentation?
The FreeBSD documentation project has amassed such a wealth
of information, but I couldn't find anything related to threads,
which does not seem a very uncommon topic to me.
The reason because I'm asking is that I've started to use
FreeBSD's system threading libraries for CM3 instead of the
built-in user threads system, and there are several interesting
effects (hangs, assertion failures, ...) with one or the other
of the libraries, which may either be located in M3 or in C
|| Olaf Wagner | wagner(at)luthien.in-berlin.de (priv.)|
|| Cranachstrasse 7 | wagner(at)elego.de (business) |
|| D-12157 Berlin | phone: +49 30 85 60 26 70 |
|| Germany / Deutschland | ab/am: +49 30 85 58 01 81 |
More information about the freebsd-threads