Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 20:53:59 -0500
From:      Seth Leigh <seth@pengar.com>
To:        freebsd-smp@freebsd.org
Subject:   Re: possible problem with SMP?
Message-ID:  <5.0.2.1.0.20010215204946.027a3c88@hobbiton.shire.net>
In-Reply-To: <200102160122.RAA08035@sharmas.dhs.org>
References:  <14987.27399.662691.291906@nomad.yogotech.com> <5.0.2.1.0.20010214234050.026959f8@hobbiton.shire.net> <14987.27399.662691.291906@nomad.yogotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
With the normal threads library under Solaris (/usr/lib/libthread.so.1 and 
/usr/lib/libpthread.so.1) the default mode of operation is indeed 
n:m.  However, if you declare a pthread_attr_t and call 
pthread_attr_setscope() on it with PTHREAD_SCOPE_SYSTEM, then any threads 
created subsequently are bound to an lwp.  Threads created with 
PTHREAD_SCOPE_SYSTEM are 1:1.

Additionally, with Solaris 8 there is an alternate threads library 
(/usr/lib/lwp/libpthread.so.1) which is strictly 1:1.  Ie: bound threads 
are all you get, and all scheduling and such is left to the kernel.

Seth

At 05:22 PM 2/15/2001 -0800, Arun Sharma wrote:
>On 15 Feb 2001 06:37:23 +0100, Nate Williams <nate@yogotech.com> wrote:
> > Sun's JDK uses a one-one mapping, because
>
>Do you have any references for this ? libpthread on Solaris uses n:m
>mapping, AFAIK.
>
>         -Arun
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-smp" in the body of the message




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




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