Subject: Re: disabling PTHREAD_CONCURRENCY for 3.0
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: None <zvrba@globalnet.hr>
List: tech-kern
Date: 12/13/2005 18:49:41
-----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" ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDnwm1FtofFpCIfhMRA17dAJwOoGdPt1a7UItZcx1p2amnToIiYgCfXDs2
uUstHAeXYDfCwM6oNB0F7jQ=
=z9xc
-----END PGP SIGNATURE-----