avatar
Does Linux support thread?# Unix - 噫吁兮,危乎高哉
t*n
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
avatar
m*m
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.

avatar
w*n
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。