What is the difference between LinuxThreads and NPTL?
• http://homepages.tesco.net/~J.deBoynePollard/FGA/linux-thread-problems.html • http://people.redhat.com/drepper/nptl-design.pdf • http://linuxdevices.com/articles/AT6753699732.html To tell which one your compiler suite and distro is using, use one of the following two methods • getconf ( works only on recent glibc ) [loic@neumann loic]$ getconf GNU_LIBPTHREAD_VERSION NPTL 0.61 # that’s NPTL v0.61 [loic@neumann loic]$ getconf GNU_LIBPTHREAD_VERSION linuxthreads-0.10 # that’s LinuxThread v0.10 • ldd (always works) Assuming that you want to know with libpthreads the binary /your_bin/ is using, then run the command: `ldd your_bin | grep libc.so.6 | cut -d’ ‘ -f 3` | egrep -i ‘linuxthreads|nptl’ Example with your_bin=/bin/ls: If you have LinuxThreads: [loic@neumann loic]$ `ldd /bin/ls | grep libc.so.6 | cut -d’ ‘ -f 3` | egrep -i ‘linuxthreads|nptl’ linuxthreads-0.10 by Xavier Leroy Or if you have NPTL: [loic@neumann loic]$ `ldd /bin/ls | grep libc.so.6 | cut -d’ ‘ -f 3` | egrep -i ‘linuxt