From owner-freebsd-threads@FreeBSD.ORG Mon Feb 11 15:18:10 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6C2816A417 for ; Mon, 11 Feb 2008 15:18:10 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id D827313C467 for ; Mon, 11 Feb 2008 15:18:10 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 7BB3B1A4D8B; Mon, 11 Feb 2008 07:18:10 -0800 (PST) Date: Mon, 11 Feb 2008 07:18:10 -0800 From: Alfred Perlstein To: Olaf Wagner Message-ID: <20080211151810.GH99258@elvis.mu.org> References: <20080211013728.GB54462@luthien.in-berlin.de> <20080211031325.GF99258@elvis.mu.org> <20080211072402.GA59256@luthien.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080211072402.GA59256@luthien.in-berlin.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-threads@freebsd.org Subject: Re: FreeBSD Threading Documentation X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 15:18:11 -0000 * Olaf Wagner [080210 23:35] wrote: > On Sun, Feb 10, 2008 at 07:13:25PM -0800, Alfred Perlstein wrote: > > * Olaf Wagner [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