On 16 Feb 2001 02:57:09 +0100, Seth Leigh <se...@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.
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message