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.
|
|