From dev-return-4313-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Mon Sep 17 00:32:27 2001 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 14317 invoked by uid 500); 17 Sep 2001 00:32:27 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 14306 invoked from network); 17 Sep 2001 00:32:27 -0000 Date: Sun, 16 Sep 2001 17:29:38 -0700 From: Brian Pane Subject: Re: Solaris 8 and 9 thread libraries was Re: [proposal] apr_thread_setconcurrency() To: dev@apr.apache.org Message-id: <3BA543F2.2010009@pacbell.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010913 References: <20010914154448.V11014@clove.org> <3BA2BD23.8060004@cnet.com> <3BA2C7F3.9010004@cnet.com> <20010916112125.O12417@ebuilt.com> <1000673622.2826.8.camel@c1619481-a.almda1.sfba.home.com> <20010916140239.U12417@ebuilt.com> <20010916152937.M11014@clove.org> <20010916161258.V12417@ebuilt.com> <20010916163640.W12417@ebuilt.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Justin Erenkrantz wrote: >On Sun, Sep 16, 2001 at 04:12:58PM -0700, Justin Erenkrantz wrote: > >>Yup. More precisely /usr/lib/lwp/libthread.so is the "alternate" >>version and /usr/lib/libthread.so is the "default" version. They >>are binary compatible (as far as we care) - therefore the >>LD_LIBRARY_PATH trick works. With Solaris 8 (first one to have >>this alternate version), the default is to use LWPs and the >>alternate is bound threads. AFAIK, Solaris 9 switches them. >> > >% uname -srvm >SunOS 5.9 Beta sun4u >% ls -l /usr/lib/lwp/libthread.so.1 /usr/lib/libthread.so.1 >-rwxr-xr-x 1 root bin 129168 Jun 20 10:40 /usr/lib/libthread.so.1 >lrwxrwxrwx 1 root root 17 Aug 29 16:41 /usr/lib/lwp/libthread.so.1 -> ../libthread.so.1 > >% uname -srvm >SunOS 5.8 Generic_108529-09 i86pc >jerenkrantz@boris% ls -l /usr/lib/lwp/libthread.so.1 /usr/lib/libthread.so.1 >-rwxr-xr-x 1 root bin 170724 Jan 24 2001 /usr/lib/libthread.so.1 >-rwxr-xr-x 1 root bin 108620 Feb 22 2001 /usr/lib/lwp/libthread.so.1 > >As you can see, the alternate threading library on Solaris 9 just points >to /usr/lib/libthread.so.1. Based on what I can see, LWPs are still >present, but the performance characteristics and functions executed >*looks* like it is a bound thread implementation. I don't have access > That sounds like what I'd expect, based on earlier descriptions of how Solaris 9 would have a single-layer thread model by default: presumably they kept the LWP architecture (which seems rather an integral part of the kernel's process management) and modified the thread and pthread libs to make user-layer threads automatically bound to LWPs. --Brian