進程pid: getpid() 線程tid: pthread_self() //進程內唯一,但是在不同進程則不唯一。 線程pid: syscall(SYS_gettid) //系統內是唯一的#include ...
確定! 回上一頁