$ nohup bash runclt &
$ ps -ef | grep 程序名
(gdb) info threads
Id Target Id Frame
105 Thread 0x7ffe7132f700 (LWP 466485) "ZkClientCb" 0x00007ffe796806d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
104 Thread 0x7ffe70628700 (LWP 466486) "ZkClientCb" 0x00007ffe796806d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
103 Thread 0x7ffe6f703700 (LWP 466487) "controler" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
102 Thread 0x7ffe6e9fc700 (LWP 466488) "controler" 0x00007ffe796806d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
101 Thread 0x7ffe6dcf5700 (LWP 466489) "controler" 0x00007ffe7968396d in nanosleep () from /usr/lib64/libpthread.so.0
100 Thread 0x7ffe6cfee700 (LWP 466490) "controler" 0x00007ffe796806d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
99 Thread 0x7ffe6c2e7700 (LWP 466491) "controler" 0x00007ffe796806d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
98 Thread 0x7ffe6b5e0700 (LWP 466492) "rdk:main" 0x00007ffe79680a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
97 Thread 0x7ffe6a8d9700 (LWP 466493) "rdk:broker-1" 0x00007ffe79680a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
96 Thread 0x7ffe69bd2700 (LWP 466494) "rdk:broker19928" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
95 Thread 0x7ffe68ecb700 (LWP 466495) "rdk:broker19929" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
94 Thread 0x7ffe681c4700 (LWP 466496) "rdk:broker19930" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
93 Thread 0x7ffe674bd700 (LWP 466497) "rdk:broker19931" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
92 Thread 0x7ffe667b6700 (LWP 466498) "rdk:broker19932" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
91 Thread 0x7ffe65aaf700 (LWP 466499) "rdk:broker19933" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
90 Thread 0x7ffe64da8700 (LWP 466500) "rdk:broker19934" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
89 Thread 0x7ffe640a1700 (LWP 466501) "rdk:broker17599" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
88 Thread 0x7ffe6339a700 (LWP 466502) "rdk:broker17510" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
87 Thread 0x7ffe62693700 (LWP 466503) "rdk:broker17510" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
86 Thread 0x7ffe6198c700 (LWP 466504) "rdk:broker17510" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
85 Thread 0x7ffe60c85700 (LWP 466505) "rdk:broker17510" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
84 Thread 0x7ffe5ff7e700 (LWP 466506) "rdk:broker17510" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
83 Thread 0x7ffe5f277700 (LWP 466507) "rdk:broker3744" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
82 Thread 0x7ffe5e570700 (LWP 466508) "rdk:broker17510" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
81 Thread 0x7ffe5d869700 (LWP 466509) "rdk:broker17511" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
80 Thread 0x7ffe5cb62700 (LWP 466510) "rdk:broker3627" 0x00007ffe78947bcd in poll () from /usr/lib64/libc.so.6
(gdb) t 线程号
[Switching to thread 7 (Thread 0x7ffe21463700 (LWP 466583))]
#0 0x00007ffe796806d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0
$ bt
网友评论