"Go" in-depth understanding of the Java memory model

Source: Internet
Author: User
Outline

Communication between Java threads is completely transparent to programmers, and memory visibility issues can easily plague Java programmers, and this article attempts to uncover the mysteries of the Java memory model. This paper is divided into three parts: reordering and sequential consistency, memory semantics of three synchronous primitives (lock,volatile,final), reordering rules and implementation in the processor, the design goal of the Java memory model, and its relationship to the processor memory model and the sequential consistent memory model.

In-depth understanding of Java memory Model (i)--deep understanding of Java Memory Model (ii)--reordering in-depth understanding of Java memory Model (iii)--sequential consistency in-depth understanding of Java memory Model (iv)--volatile in-depth understanding of Java memory Model (v)-- Lock in-depth understanding Java memory Model (vi)--final in-depth understanding of Java memory Model (vii)--Summary

"Go" in-depth understanding of the Java memory model

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.