+ -
当前位置:首页 → 问答吧 → linux下pthread_create(pthread_t &thread, ... );创建之后用thread怎么跟ps/top相对应???

linux下pthread_create(pthread_t &thread, ... );创建之后用thread怎么跟ps/top相对应???

时间:2011-08-25

来源:互联网

如题

作者: moccasmater   发布时间: 2011-08-25

线程会有PID,只要有PID,就可以通过ps/top查.

作者: zmlovelx   发布时间: 2011-08-25

ps/top只可以查对应的PID
要想查具体的tid可以 ls /proc/(PID)/task/

作者: zjf30366   发布时间: 2011-08-25