免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1290 | 回复: 4
打印 上一主题 下一主题

最近在学习pthread,请教翻译 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-18 11:11 |只看该作者 |倒序浏览
Thread termination does not release any application visible process resources, including, but not limited to, mutexes and file descriptors, nor does it perform any process level cleanup actions, including, but not limited to, calling any atexit() routines that may exist.
这句怎么翻译呢?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-04-18 11:29 |只看该作者
线程结束时并不释放应用可见的进程资源,包括但不限于互斥体和文件描述符。
它也不执行任何进程级别的清除操作,包括但不限于当进程退出时要调用的可能存在的任何atexit()函数。

很粗略,请参考。

论坛徽章:
0
3 [报告]
发表于 2006-04-18 12:16 |只看该作者
谢谢,那下面这句:
The behaviour of pthread_exit() is undefined if called from a cancellation cleanup handler or destructor function that was invoked as a result of either an implicit or explicit call to pthread_exit().

我理解的是因为pthread_create要指定一个调用函数,如果这个函数是pthread_exit(),即所谓的显示;隐示就是在这个函数中又调用了pthread_exit(),那就出现了循环调用,这个时候pthread_exit()就是无定义的。
不知道对不 ?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2006-04-18 12:33 |只看该作者
抱歉,对线程不太熟,只知道大概,
不能给你建议。

论坛徽章:
0
5 [报告]
发表于 2006-04-18 12:48 |只看该作者
还是感谢,斑竹。
自己顶一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP