atom feed32 messages in org.freebsd.freebsd-smpRe: possible problem with SMP?
FromSent OnAttachments
Russell FrancisFeb 14, 2001 11:31 am 
Kris KennawayFeb 14, 2001 7:10 pm 
Seth LeighFeb 14, 2001 7:34 pm 
Kris KennawayFeb 14, 2001 7:53 pm 
Seth LeighFeb 14, 2001 9:01 pm 
Nate WilliamsFeb 14, 2001 9:36 pm 
Kris KennawayFeb 14, 2001 9:43 pm 
Terry LambertFeb 14, 2001 11:08 pm 
Seth LeighFeb 14, 2001 11:20 pm 
Seth LeighFeb 14, 2001 11:55 pm 
Jason EvansFeb 15, 2001 1:32 am 
Nate WilliamsFeb 15, 2001 9:06 am 
Terry LambertFeb 15, 2001 3:35 pm 
Nate WilliamsFeb 15, 2001 3:41 pm 
Terry LambertFeb 15, 2001 4:03 pm 
Terry LambertFeb 15, 2001 4:08 pm 
Terry LambertFeb 15, 2001 4:51 pm 
Arun SharmaFeb 15, 2001 5:19 pm 
Arun SharmaFeb 15, 2001 5:22 pm 
Seth LeighFeb 15, 2001 5:53 pm 
Nate WilliamsFeb 15, 2001 7:17 pm 
Kris KennawayFeb 15, 2001 9:16 pm 
Russell FrancisFeb 15, 2001 9:31 pm 
Yifeng XuFeb 15, 2001 9:33 pm 
Arun SharmaFeb 15, 2001 10:17 pm 
Kris KennawayFeb 15, 2001 10:35 pm 
Arun SharmaFeb 15, 2001 11:01 pm 
Seth LeighFeb 15, 2001 11:19 pm 
Jordan HubbardFeb 16, 2001 2:06 am 
Jacques A. VidrineFeb 16, 2001 9:06 am 
Arun SharmaFeb 16, 2001 10:45 am 
Kris KennawayFeb 16, 2001 9:24 pm 
Subject:Re: possible problem with SMP?
From:Arun Sharma (adsh@sharmas.dhs.org)
Date:Feb 15, 2001 11:01:38 pm
List:org.freebsd.freebsd-smp

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.

-Arun

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