Date: Thu, 15 Feb 2001 23:02:00 -0800 From: Arun Sharma <adsharma@sharmas.dhs.org> To: seth@pengar.com Cc: freebsd-smp@freebsd.org Subject: Re: possible problem with SMP? Message-ID: <200102160702.XAA08817@sharmas.dhs.org> In-Reply-To: <5.0.2.1.0.20010215204946.027a3c88@hobbiton.shire.net> References: <200102160122.RAA08035@sharmas.dhs.org> <5.0.2.1.0.20010215204946.027a3c88@hobbiton.shire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16 Feb 2001 02:57:09 +0100, Seth Leigh <seth@pengar.com> wrote: > 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. Sun JDKs do not seem to do PTHREAD_SCOPE_SYSTEM under normal operation, so I can't see how their implementation would be 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. > Since JDKs for pre Solaris 8 versions of Solaris exist, I assume that the JDK is not being linked against this lib. -Arun 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?200102160702.XAA08817>