i**p 发帖数: 902 | 1 Can we program multi-thread code with pthread library? |
p***o 发帖数: 1252 | 2 Why not?
【在 i**p 的大作中提到】 : Can we program multi-thread code with pthread library?
|
i**p 发帖数: 902 | 3 How? Is there Thread class in pthread library? or I have to call pthread C
library in my C++ code?
【在 p***o 的大作中提到】 : Why not?
|
D*******a 发帖数: 3688 | 4 right, use a small C function to serve as a thread stub
【在 i**p 的大作中提到】 : How? Is there Thread class in pthread library? or I have to call pthread C : library in my C++ code?
|
i**p 发帖数: 902 | 5 The Zthread provides the multi-threading Class Library, which makes the thread programming in C++ much easier. Is there any effort on pthread by POSIX or organizations? After all, the pthread is used broadly by programers.
【在 D*******a 的大作中提到】 : right, use a small C function to serve as a thread stub
|
p***o 发帖数: 1252 | 6 What do you mean? A C++ version of pthread? I don't think pthread people
would put any effort toward that. It makes more sense to port pthread to
every platform.
There are quite some cross-platform C++ thread libraries, which will use
pthread on platforms with pthread, like Zthread and ACE.
thread programming in C++ much easier. Is there any effort on pthread by
POSIX or organizations? After all, the pthread is used broadly by programers.
【在 i**p 的大作中提到】 : The Zthread provides the multi-threading Class Library, which makes the thread programming in C++ much easier. Is there any effort on pthread by POSIX or organizations? After all, the pthread is used broadly by programers.
|
i**p 发帖数: 902 | 7 No necessary of a C++ version, but a class wrapper of pthread library, for
example,
Class My_class : public Pthread {
...
}
My_class my;
my.create();
..
Did you mean Zthread is implemented by pthread underneath?
programers.
【在 p***o 的大作中提到】 : What do you mean? A C++ version of pthread? I don't think pthread people : would put any effort toward that. It makes more sense to port pthread to : every platform. : There are quite some cross-platform C++ thread libraries, which will use : pthread on platforms with pthread, like Zthread and ACE. : : thread programming in C++ much easier. Is there any effort on pthread by : POSIX or organizations? After all, the pthread is used broadly by programers.
|
p***o 发帖数: 1252 | 8
en.wikipedia.org/wiki/Zthread
【在 i**p 的大作中提到】 : No necessary of a C++ version, but a class wrapper of pthread library, for : example, : Class My_class : public Pthread { : ... : } : My_class my; : my.create(); : .. : Did you mean Zthread is implemented by pthread underneath? :
|