Subject: Re: disabling PTHREAD_CONCURRENCY for 3.0
To: None <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 12/13/2005 19:20:55
On Tue, Dec 13, 2005 at 06:49:41PM +0100, email@example.com wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
> On Tue, Dec 13, 2005 at 08:27:18AM -0800, Garrett D'Amore wrote:
> > I think its easy enough to just ignore the environment variable that
> > sets it.
> I apologize for the possibly stupid question, but from my reading of
> the pthread manual page about PTHREAD_CONCURRENCY ("The number of concurrent
> threads to be run.") and the corresponding system call, I get the impression
> that restricting it to 1 wouldn't utilize multiple CPUs. E.g. if I had an
> application with 2 parallely executable threads and a machine with 2 CPUs,
> those two threads would be alternatively scheduled, but never running really
> in parallel.
> Is my interpretation of manual pages correct, or is there some "catch" ?
Your interpretation is correct.
Manuel Bouyer <firstname.lastname@example.org>
NetBSD: 26 ans d'experience feront toujours la difference