From owner-freebsd-threads@FreeBSD.ORG Mon Apr 21 20:01:55 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC1BD37B401 for ; Mon, 21 Apr 2003 20:01:55 -0700 (PDT) Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EB3B43FDF for ; Mon, 21 Apr 2003 20:01:53 -0700 (PDT) (envelope-from narvi@haldjas.folklore.ee) Received: from haldjas.folklore.ee (localhost [127.0.0.1]) by haldjas.folklore.ee (8.12.3/8.11.3) with ESMTP id h3M31pUE033115; Tue, 22 Apr 2003 06:01:51 +0300 (EEST) (envelope-from narvi@haldjas.folklore.ee) Received: from localhost (narvi@localhost)h3M31p2v033112; Tue, 22 Apr 2003 06:01:51 +0300 (EEST) Date: Tue, 22 Apr 2003 06:01:51 +0300 (EEST) From: Narvi To: Terry Lambert In-Reply-To: <3EA49320.F62E1B1E@mindspring.com> Message-ID: <20030422055559.L33034-100000@haldjas.folklore.ee> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: Daniel Eischen Subject: Re: libkse -> libpthreads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 03:01:56 -0000 On Mon, 21 Apr 2003, Terry Lambert wrote: > Narvi wrote: > > If by "now" you mean Solaris 9, then yes, this is so. This is not a > > fundamental issue, merely how kernel API-s are used. On Solaris 8 you get > > both the "old" M:N version and the Solaris 9 style 1:1 version in > > /usr/lib/lwp. There is no way to tell what it will be in Solaris 9+x for > > some arbitrary positive value of x. > > Right. The liblwp in SunOS 4.1.3_U2 (first appearing in SunOS 4.0.2, > I believe) is a totally different liblwp, as well (just the same name); > LWP used to be a purely user space abstraction. > I don't think there is a liblwp in modern solaris, lwp remains only as a name for kernel threads. /usr/lib/lwp is just a directory containing alternative threads libraries on solaris 8 and is a symbolic link to /usr/lib on solaris 9. > > Sun did this same thing in a different order; Linux too: > > FreeBSD libc libc_r(N:1) libthr(1:1) libkse(N:M) > Sun libc liblwp(N:1) liblwp(N:M) liblwp(1:1) > Linux libc pthreads(N:1) pthreads(1:1) - (no N:M at all) > > I've heard it anecdotally claimed that Sun made the change to > avoid bugs; I've also heard it anecdotally claimed by Sun > engineers that they made the change because they don't have > the man power remaining to perform ordinary maintenance on a > lot of their existing code base. Perhaps they were just > disgruntled, and the first excuse is the correct one... ;^). > the claim in the man page(s)/whitepaper(s) is about perfomance though - but as always, these would be claims about a particular implementation and freebsd one might not run into whichever problems caused the speed loss on solaris. > -- Terry >