在linux中,我们可以通过以下命令获得目前使用的thread版本:

 getconf GNU_LIBPTHREAD_VERSION

 比如在我的RedHad平台上,得到以下输出:
  NPTL 0.60

  另外我们还可以通过以下命令获得更多的关于线程的信息:
   1) ldd /bin/ls | grep libc.so.6
   输出:
           libc.so.6 => /lib/tls/libc.so.6 (0xb749a000)

   2) /lib/tls/libc.so.6
   输出:

GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.2.3 20030502 (Red Hat Linux 3.2.3-20).
Compiled on a Linux 2.4.20 system on 2003-10-02.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        NPTL 0.60 by Ulrich Drepper
        RT using linux kernel aio
        The C stubs add-on version 2.1.2.
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Glibc-2.0 compatibility add-on by Cristian Gafton
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs@gnu.org>.