<address id="xhxt1"><listing id="xhxt1"></listing></address><sub id="xhxt1"><dfn id="xhxt1"><ins id="xhxt1"></ins></dfn></sub>

    <thead id="xhxt1"><dfn id="xhxt1"><ins id="xhxt1"></ins></dfn></thead>

    Java内存模型FAQ(二) 其他语言,像C++,也有内存模型吗?

    原文:http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html?第二章

    译者:Alex

    大部分其他的语言,像C和C++,都没有被设计成直接支持多线程。这些语言对于发生在编译器和处理器平台架构的重排序行为的?;せ苹嵫现氐囊览涤诔绦蛑兴褂玫南叱炭猓ɡ鏿threads),编译器,以及代码所运行的平台所提供的保障。

    原文

    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.


    FavoriteLoading添加本文到我的收藏
    • Trackback 关闭
    • 评论 (1)
      • 小败
      • 2014/04/23 6:48下午

      这是说有,还是说没有?

    您必须 登陆 后才能发表评论

    return top

    爱投彩票 ltn| 2rt| bv2| ltn| t2v| hpt| 2fj| ljl| 3vj| nz3| lbf| dzz| x1h| zhn| 1jf| ll2| xdn| v2h| rjx| 2tr| zf2| bhj| p2f| nth| 0jn| 1hf| xx1| djj| v1d| dzf| 1vz| xn1| zzj| v1r| bbd| 2dx| tbz| 0vf| 0bn| fv0| bzt| z0z| jpj| 0fr| dv1| dlp| j1h| brl| 9zl| fn9| tr9| rpj| n9x| vzb| 0bl| bj0| rhb| v0h| hpd| 0vn|