C/C++ 获取Linux线程ID与进程ID

#include LOGI(" TID: %d, PID: %d", code, syscall(__NR_gettid), syscall(__NR_getpid); LOGI(" TID: %d, PID: %d", code, syscall(224), syscall(20);

-----

参考:http://my.huhoo.net/archives/2009/10/linuxid.html

http://www.oklinux.cn/html/developer/other/20080814/59519.html

linux线程的线程ID与其进程ID

你可能感兴趣的:(C/C++ 获取Linux线程ID与进程ID)