QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1185|回复: 3

process & thread语术

[复制链接]
发表于 2003-6-11 19:20:12 | 显示全部楼层 |阅读模式
感觉linux到了2.4以后,对于process和thread的定义还是有点混淆。
不知道是不是我的理解有问题。
一个进程里含有内核级多线程,每个线程都有自己的pid,但是通过tgid来控制。
将pid作为一种资源,我觉得linux内核线程有占有这种资源的能力,但是从POSIX标准
而言,thread不应该具有这种能力呀.....迷惑....
发表于 2003-6-11 22:01:17 | 显示全部楼层
hehe, yes. i feel that the process and thread here are not the same as the ones we learned from os book.
回复

使用道具 举报

 楼主| 发表于 2003-6-12 11:21:55 | 显示全部楼层
是呀,感觉这点FreeBSD5.x的process和thread关系更符合POSIX标准。
回复

使用道具 举报

发表于 2003-6-12 11:27:33 | 显示全部楼层
but i believe posix do not define kernel thread and process. it is a point of view from user space. so if user space is ok, then ok.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-6-29 13:22 , Processed in 0.087106 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表