Java内存模型FAQ(二) 其他语言,像C++,也有内存模型吗?
2016-01-19 16:50
411 查看
原文:http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html 第二章
译者:Alex
大部分其他的语言,像C和C++,都没有被设计成直接支持多线程。这些语言对于发生在编译器和处理器平台架构的重排序行为的保护机制会严重的依赖于程序中所使用的线程库(例如pthreads),编译器,以及代码所运行的平台所提供的保障。
on the guarantees provided by the threading libraries used (such as pthreads), the compiler used, and the platform on which the code is run.
原创文章,转载请注明: 转载自并发编程网 – ifeve.com
本文链接地址:
Java内存模型FAQ(二) 其他语言,像C++,也有内存模型吗?
译者:Alex
大部分其他的语言,像C和C++,都没有被设计成直接支持多线程。这些语言对于发生在编译器和处理器平台架构的重排序行为的保护机制会严重的依赖于程序中所使用的线程库(例如pthreads),编译器,以及代码所运行的平台所提供的保障。
原文
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 dependenton the guarantees provided by the threading libraries used (such as pthreads), the compiler used, and the platform on which the code is run.
原创文章,转载请注明: 转载自并发编程网 – ifeve.com
本文链接地址:
Java内存模型FAQ(二) 其他语言,像C++,也有内存模型吗?
相关文章推荐
- 改善程序与设计的55个具体做法之一:视C++为语言联邦
- operator new在C++中的各种写法
- 1008. Elevator (20)
- C语言中extern的用法
- 微机接口课设 汽车控制系统 C语言源代码 Proteus 8086
- 1006. Sign In and Sign Out (25)
- 1005. Spell It Right (20)
- C++使用cout补0
- 困扰很久的汉诺塔问题c语言实现
- vector VS list in C++
- 《C/C++专项练习》 — (3)
- C++之路进阶——splay树(宠物收养所)
- leetcode Move Zeros
- C/C++代码覆盖工具gcov与lcov入门
- C++ AMP异构并行编程解析
- android源码中 C++文件log使用
- UVA11729_Commando War
- C++ 设计模式2 (面向对象设计原则)
- C语言二叉树的层序遍历
- C语言结构体类型声明和定义标准形式