thread pool helpers

Gerald Carter jerry at plainjoe.org
Tue Apr 28 15:35:03 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Volker,

> On Tue, Apr 28, 2009 at 08:22:58AM -0700, Jeremy Allison wrote:
>> Is there a way we can wrap this, so that on systems with non-broken
>> pthread semantics can work with pthreads, and on Linux we use something
>> else ?
> 
> In case we want this API, it should be pretty easy to hide a
> clone(2)-based API behind the fncall_send/recv functions. My
> only worry is that I don't know I get the memory barriers to
> work correctly across all Linux platforms. Not doing that
> correctly might introduce subtle bugs on true multiprocessor
> machines.

For what it's worth Solaris 8 - 10 has been the most problematic
system wrt to pthread bugs (in the Likewise codebase).  And in
those cases, new OS patches would resolve the issues.  I don't
remember any major pthread issues on Linux.





cheers, jerry
- --
=====================================================================
http://git.plainjoe.org/                                         CODE
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn3IicACgkQIR7qMdg1Efaw/ACgwArB+kbpZL99O+GvdzXddMEf
If0An1fuIq5dhVxBDlnVVEi4x5KHu8XD
=qUzM
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list