摘要: 线程库<pthread.h> 获取程序的进程号 getpid() cout<<"main function pid:"<<getpid()<<endl; 获取线程函数的线程号 #include <sys/types.h> cout<<"route thread function pid:"<<get 阅读全文
posted @ 2022-03-10 09:41 Wangtn 阅读(246) 评论(0) 推荐(0) 编辑