|
|
发表于 2005-4-17 19:40:58
|
显示全部楼层
libc有支持LinuxThread和NPTL两种线程库的扩展。一般支持NPTL的放在/lib/tls目录下。支持LinuxThread的就放在/lib下面。如果在你的系统上两种方式都支持,就会在/lib和/lib/tls目录下各有一个libc.so.6。想要具体知道那个libc.so.6是支持LinuxThread还是NPTL,可以直接执行libc.so.6(这个动态厍可以直接执行)。在Available extensions:可以看到支持的是什么线程库:
- bash-2.05b$ /lib/libc.so.6
- GNU C Library stable release version 2.3.3, by Roland McGrath et al.
- Copyright (C) 2004 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.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6).
- Compiled on a Linux 2.4.21 system on 2004-11-07.
- Available extensions:
- GNU libio by Per Bothner
- crypt add-on version 2.1 by Michael Glad and others
- linuxthreads-0.10 by Xavier Leroy
- BIND-8.2.3-T5B
- libthread_db work sponsored by Alpha Processor Inc
- NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
- Report bugs using the `glibcbug' script to <bugs@gnu.org>.
- bash-2.05b$
复制代码 |
|