Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2008 08:24:02 +0100
From:      Olaf Wagner <wagner@luthien.in-berlin.de>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: FreeBSD Threading Documentation
Message-ID:  <20080211072402.GA59256@luthien.in-berlin.de>
In-Reply-To: <20080211031325.GF99258@elvis.mu.org>
References:  <20080211013728.GB54462@luthien.in-berlin.de> <20080211031325.GF99258@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 10, 2008 at 07:13:25PM -0800, Alfred Perlstein wrote:
> * Olaf Wagner <wagner@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
> pthreads.

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
code.

Olaf
-- 
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|| 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            | 
\/////////////////////////////////////////////////////////////////



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080211072402.GA59256>