【翻譯二】其餘語言有內存模型嗎

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

相關文章
相關標籤/搜索