Determining NPTL version
Most recent linux distributions (CentOS 4, Fedora 3+, RHE 4, etc) are NPTL (Native POSIX Thread Library) based. If you want to check if your system is NPTL based, or only if you want to find out what version it is present in your kernel, you can use the following command:
getconf GNU_LIBPTHREAD_VERSION
Sample results:
On a Debian Etch system:
getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.6
On a RHEL4 system:
getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4
For a detailed description on NPTL you can check wikipedia.
Share This








19th July 2006, 16:11
> what version is present in your kernel
Based on the versions returned both above and here (returned 2.4, running Gentoo, glibc 2.4 kernel 2.6.17.6), and the fact that getconf is part of the glibc package, PLUS the fact that NPTL is a glibc compilation option (it’s a USE flag for the glibc package here on Gentoo), I believe that should read “what version is present in your glibc”.
Good tip in any case, however, as I had no idea getconf even existed, let alone what it might be used for!
19th July 2006, 18:48
Duncan,
You are correct. :-). Unfortunately it is a little too late for me to change the permalinks, url, etc.
Thanks for the comment.
Cheers,
- Marius -