+ -
当前位置:首页 → 问答吧 → 发个牢骚:一直希望Linux从内核态支持线程,这么多年了也还没实现

发个牢骚:一直希望Linux从内核态支持线程,这么多年了也还没实现

时间:2010-07-23

来源:互联网

作者: folklore   发布时间: 2010-07-23

实在不喜欢Fork啊~~~


Thread的确比Process占用更少的资源,(至少可以省下页表空间吧,Thread所占的资源,除了它的内核数据结构外,也就内核和用户Stack了。。。)

哪个达人什么时候有空加个Thread支持?不知Linuz从也不从

作者: folklore   发布时间: 2010-07-23

看这个文档,Linux已经支持内核线程的样子,不过,讲得很奇怪
The new glibc version 2 (linux libc version 6.0) is fully re-entrant and supports threads in a fully compliant manner. The default Linux thread implementation is with kernel-space threads, not user-space threads; these threads will schedule properly on an SMP architecture.

Y的到底是内核线程还是用户线程啊,内核线程关Glib什么事,自相矛盾。



http://linas.org/linux/threads-faq.html

作者: folklore   发布时间: 2010-07-23

热门下载

更多