【翻译二】其余语言有内存模型吗

Do other languages, like C++, have a memory model?

Most other programming languages, such as C and C++, were not designed with direct support for multithreading. The protections that these languages offer against the kinds of reorderings that take place in compilers and architectures are heavily dependent on the guarantees provided by the threading libraries used (such as pthreads), the compiler used, and the platform on which the code is run.多线程

其余许多变成语言,好比C和C++,它们并未多线程支持进行设计。为了防止发生在编译器和处理器中的重排序,这些语言也采起了保护措施,但对多线程的保护严重依赖于代码所使用的多线程类库(例如pthread),使用的编译器,以及所处的处理器平台。ide

相关文章
相关标签/搜索