Reputation: 9649
Is NPTL from glic source tree the canonical libpthread distribution for pthread?
Want to make sure because there's also an ambiguous libpthread named project hosted on Hurd.
Upvotes: 1
Views: 62
Reputation: 213375
There is no such thing as "canonical libpthread" -- it is different on different platforms.
On Linux, GLIBC provides POSIX thread implementation as part of it (in the nptl
directory), and that's what most Linux programs use. But it's possible to use other C libraries (uClibc, dietlibc, Musl), and they provide their own thread implementation. It would generally not work to try to link NPTL with Musl (or any other non-GLIBC libc implementation).
On Solaris, or AIX, or HP-UX, the POSIX thread implementation is completely different and has nothing to do with NPTL (or any other open-source implementation).
there's also an ambiguous libpthread named project hosted on Hurd.
That looks like a fork of GLIBC with Hurd-specific patches.
Upvotes: 1