L*****e 发帖数: 169 | 1 多线程在标准c++下有定义吗?
还是和具体的编译器实现有关,比如gcc和vc下实现不一样? |
h****e 发帖数: 2125 | 2 no, you have to use thread libraries now. Maybe in near future C++ will have
language support for threading.
【在 L*****e 的大作中提到】 : 多线程在标准c++下有定义吗? : 还是和具体的编译器实现有关,比如gcc和vc下实现不一样?
|
w***g 发帖数: 5958 | 3 boost里有比较方便的多线程编程接口。
【在 L*****e 的大作中提到】 : 多线程在标准c++下有定义吗? : 还是和具体的编译器实现有关,比如gcc和vc下实现不一样?
|
f*******y 发帖数: 988 | 4 等09版吧
【在 L*****e 的大作中提到】 : 多线程在标准c++下有定义吗? : 还是和具体的编译器实现有关,比如gcc和vc下实现不一样?
|
h*********o 发帖数: 62 | 5 It seems that built-in multi-thread is a huge problem in a language like C++
.
The reason, as my unstanding, is that standard C++ is platform dependent
language. And the different OS handle multi-thread differently. For example,
Windows is a real multi-thread OS, while Unix/Linux are not real ones. They
use multi processes to simulate multi thread behavior.
I guess that this difference makes built-in multi-thread support unrealistic
for C++ as long as you do not want to make it platform indepen |