由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Does Linux support thread?
相关主题
multithread questionmultithread programming
pthread_kill SIGINT SIG_DFL multithreadfile descriptor
Semaphores in Linux (转载)[转载] alarm, pause 又一问
问:用惯linux的人适不适合转Mac OS??A Unix question
Have anyone installed FreeBSD on your PCwhat is the difference between pthread and thr_ ?
Unix下好好的到了linux下segment faultdoes Linux has real time timer?
在linux 和 Unix 上做 C/C++ 有差别吗?which shell is the best among csh, ksh, bsh?
哪位能推荐适于C/C++ 编程的linux/unix使用手册?Perl Q
相关话题的讨论汇总
话题: thread话题: linux话题: does话题: os话题: support
进入Unix版参与讨论
1 (共1页)
t******n
发帖数: 11
1
hi, I just have this problem when I am learning OS.
I couldn't find the keyword in most of my Linux books. Does
linux support thread?
I searched the the book "the concepts of OS", it says that
in Linux it uses a different concept of thread; every time
it needs a thread, it just clone a child thread.
Is this the tradition thread? or what is the real diffence
between process and thread?
Since multithread is an important concept in modern OS,
Linux should support it, I think.
BTW, Does C++ and Java
m*****m
发帖数: 27
2
Yes, Linux supports thread.
Read Chapter11: POSIX threads from "Beginning Linux Programming"
by Stones and Matthew. This will give you a pretty good idea.

【在 t******n 的大作中提到】
: hi, I just have this problem when I am learning OS.
: I couldn't find the keyword in most of my Linux books. Does
: linux support thread?
: I searched the the book "the concepts of OS", it says that
: in Linux it uses a different concept of thread; every time
: it needs a thread, it just clone a child thread.
: Is this the tradition thread? or what is the real diffence
: between process and thread?
: Since multithread is an important concept in modern OS,
: Linux should support it, I think.

w**n
发帖数: 88
3
There are 2 levels of thread: kernel level and user level thread, The first
one needs kernel support , the latter one handled by the libary, and kernel
doesnt know anything about multi-thread in a process, that is the way how
Java works.
Programming lang only support multi-thread in user-level, multi-process
must be supported by kernel

【在 t******n 的大作中提到】
: hi, I just have this problem when I am learning OS.
: I couldn't find the keyword in most of my Linux books. Does
: linux support thread?
: I searched the the book "the concepts of OS", it says that
: in Linux it uses a different concept of thread; every time
: it needs a thread, it just clone a child thread.
: Is this the tradition thread? or what is the real diffence
: between process and thread?
: Since multithread is an important concept in modern OS,
: Linux should support it, I think.

1 (共1页)
进入Unix版参与讨论
相关主题
Perl QHave anyone installed FreeBSD on your PC
async-signal safe 问题Unix下好好的到了linux下segment fault
Socket programming help在linux 和 Unix 上做 C/C++ 有差别吗?
a perl question哪位能推荐适于C/C++ 编程的linux/unix使用手册?
multithread questionmultithread programming
pthread_kill SIGINT SIG_DFL multithreadfile descriptor
Semaphores in Linux (转载)[转载] alarm, pause 又一问
问:用惯linux的人适不适合转Mac OS??A Unix question
相关话题的讨论汇总
话题: thread话题: linux话题: does话题: os话题: support