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

next in thread | previous in thread | raw e-mail | index | archive | help
* Olaf Wagner <wagner@luthien.in-berlin.de> [080210 23:35] wrote:
> 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.

I'm not aware of a document like that.

If you work with the current thread maintainers you might be able
to get assertion hooks and further debug assistance.

Good luck,
-- 
- Alfred Perlstein



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