Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Dec 1998 09:19:45 -0800
From:      Michael Galassi <nerd@xyz.com>
To:        "Gary Palmer" <gpalmer@FreeBSD.ORG>
Cc:        Marcel van Kervinck <marcelk@stack.nl>, smp@FreeBSD.ORG
Subject:   Re: Pthreads and SMP 
Message-ID:  <199812061719.JAA51729@percy.xyz.com>
In-Reply-To: Your message of "Sun, 06 Dec 1998 11:41:36 EST." <51430.912962496@gjp.erols.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Marcel van Kervinck wrote:
>> Perhaps I've missed something obvious  But: it seems to me that a process
>> that uses multiple threads doesn't spread them over more processors?
>> I tried on a dual PII, running fbsd 3.0, and a program that simply did
>> a few pthread_create() calls.

Gary Palmer wrote:
>Correct. No-one with enough skill to do the work necessary to get thread 
>migration supported has had the time...

Unless I'm wearing serious blinders I fail to see this as a real
problem.  Unless you have only a tiny number of procs on the system it
would seem like keeping related threads together would be a good
thing.  If you had multiple closely related threads on seperate procs
and they decided to acctually access their shared data I'm guessing
you would see a lot of cache thrashing.

Best keep the threads together if you can move whole procs elsewhere
to take up the slack.

All this is, of course, IMHO.

-michael

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?199812061719.JAA51729>