社区
Linux/Unix社区
帖子详情
书上看到pthread_self(),但为何pthread.h中没有?
booming
2005-02-20 05:10:47
书上看到pthread_self(),但为何pthread.h中没有?
我运行书上程序,这个函数输出不对.这个函数啥意思?
...全文
66
1
打赏
收藏
书上看到pthread_self(),但为何pthread.h中没有?
书上看到pthread_self(),但为何pthread.h中没有? 我运行书上程序,这个函数输出不对.这个函数啥意思?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
booming
2005-02-20
打赏
举报
回复
找到了.这个函数啥意思?
我man pthread_self()为何不对?
p
thread
_
self
获取当前调用线程的识别码
头文件 #include <p
thread
.h> 函数原形 p
thread
_t p
thread
_
self
();
gcc_p
thread
编译失败.png
gcc_p
thread
编译失败.png
《Linux系统编程、网络编程》第8章 C线程
课程内容: 为什么需要线程、进程的缺点、线程是否能完全替进程?、线程控制函数(p
thread
_create、p
thread
_join、p
thread
_detach、p
thread
_exit等)、线程资源保护(互斥锁、线程信号量、条件变量)、进程与线程的...
qt 下进程条
printf("%d:%d\n",p
thread
_
self
(),value+1); count=value+1; p
thread
_mutex_unlock(&count;_mutex); } return (NULL); } int main(int argc,char ** argv) { p
thread
_t
thread
_id1,
thread
_id2; p
thread
_create(&...
多线程API.zip
常见的多线程API和用法 p
thread
_
self
函数 p
thread
_create函数 p
thread
_exit函数 p
thread
_join函数 p
thread
_detach函数 p
thread
_equal函数
Linux/Unix社区
23,114
社区成员
74,507
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章