多线程和 SMP Linux
Linux 内核据说是 SMP。 据说进程和内核线程应分布在处理器之间。
所有 Linux 发行版(如 fedora13、ubuntu 10.04 Lucid)默认都启用 SMP Linux 吗?
在 SMP Linux 上,最好遵循以下做法: a) 多进程方法 相对 b) 多线程方法
pthread 默认情况下是否创建内核级线程,以便任何应用程序都可以利用 LWP 和 SMP?
如果没有,如何使用 Pthreads 创建内核级线程。 任何参考将不胜感激。
The Linux Kernel is said to be SMP.
It is said that processes and kernel threads shall be distributed across processors.
Does all Linux distribution like fedora13, ubuntu 10.04 Lucid by default enable SMP Linux?
On an SMP Linux, which is better to follow-
a) multi-process approach
versus
b) multi-threading approachDoes pthread by default create a kernel level thread so that any application can take advantage of LWP as well as SMP?
If not, how can one make a kernel level thread using Pthreads.
Any references would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)