多线程服务程序,socket连接断开后,残留线程占cpu100%
hpux b 11.11平台
多线程服务程序, 客户端socket连接后,服务创建线程处理数据, socket断开,结束线程。
但socket连接断开后,残留线程占cpu100%。
其实是死线程, 看不到信息, gdb看到只有
(gdb) where
#0 0xc0000000003ebfac in __pthread_body+0x3c () from /usr/lib/pa20_64/libpthread.1
#1 0xc0000000003f689c in __pthread_start+0x14 () from /usr/lib/pa20_64/libpthread.1
truss 发现异常的
In user-mode [running]
In user-mode [running]
忘高人指点? 线程在干什么?