
Chapter 2. Linux 2.6 kernel 19
To determine which threading library in use, use the getconf command, as in
Example 2-2 on page 19.
Example 2-2 The getconf command on SLES9
# getconf GNU_LIBPTHREAD_VERSION
NPTL 0.61
# export LD_ASSUME_KERNEL=2.4.19
# getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10
The previous example executes on a SLES9 system. On a RHEL4 system, the
getconf command returns (Example 2-3):
Example 2-3 The getconf command on RHEL4
# getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4
# export LD_ASSUME_KERNEL=2.4.19
# getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10
If the threading library is NPTL, getconf returns:
NPTL 0.61 for SLES9
NPTL 2.3.3 ...