Pthreadsߣ手册页确实涵盖的内容并不多;我在哪里可以找到更多信息?
pthread_*
联机帮助页在很多方面都非常非常稀疏;例如,据我所知,各种 pthread_attr_set*
完全没有记录 - 也就是说,我无法弄清楚每种不同类型的属性 >实际上做到了!
除了手册页之外,我发现的唯一有用的信息来源是著名的 pthreads 教程 和 pthreads-win32 文档......在这种特殊情况下都没有帮助,并且还有很多其他的。
除了深入研究开源实现(这很可能超出我的能力范围)之外,我还能从哪里获取有关 pthread 的各种功能实际用途的信息呢?
The pthread_*
manpages are really, really sparse in lots of areas; for instance, for all I can tell, the various pthread_attr_set*
are completely undocumented — that is, I can’t figure out what each of the various types of attributes actually do!
The only other useful sources of information I’ve found, than the manpages, are the famous pthreads tutorial and pthreads-win32 documentation… neither of which helps in this particular case, and many others.
Where else can I go for information about what pthreads’ various functions actually do, short of digging into an open-source implementation (which is quite likely over my head)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许 POSIX 线程的实际规范会有帮助?
http://www.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_09。 我通常
发现,如果我想知道某些东西在 POSIX 领域如何工作,直接查看规范是最简单的。
Perhaps the actual spec for POSIX threads would help?
http://www.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_09.html
I've generally found that if I want to know how something works in POSIX-land, it's easiest to go straight to the spec.
我发现 https://computing.llnl.gov/tutorials/pthreads/ 非常有帮助,因为出色地。
I find https://computing.llnl.gov/tutorials/pthreads/ very helpful as well.