Java concurrency Summary

Source: Internet
Author: User

The effect of sorting out these knowledge is still very good. On the one hand, it is an unexpected reason. I am not clear about the usage of volatile in Java puzzlers, I 've read several articles on IBM developerworksArticleThe more things are involved, the less systematic the things you have mastered. On the other hand, the current lab project will involve a large amount of concurrency, so we should be prepared first.

In actual projects in the past, Java concurrency was mainly used in the development of games and input methods. In other cases, Java concurrency was written by itself.CodeOut of curiosity, this experiment is just a basic summary. Most of the knowledge is from thinking in Java 4 edition. A preliminary understanding of the memory model is from Java concurrency in practice. This book will be carefully read after the winter vacation. At that time, we should have a deeper understanding of all the current summaries.

Java provides strong support for concurrency, but the basic knowledge framework of concurrency is shown below: the basic idea of a summary is to first figure out the management control of the thread itself, it is converted between different States, followed by the collaboration between threads, and thus a classic problem such as competition conditions.

 

The following is a summary list of these days:

    • JAVA concurrency: multithreading basics
    • JAVA concurrency: thread management
    • JAVA concurrency: thread switching
    • JAVA concurrency: competitive condition
    • JAVA concurrency: atomicity and visibility
    • JAVA concurrency: synchronization and lock
    • JAVA concurrency: interrupt thread
    • JAVA concurrency: thread collaboration
    • JAVA concurrency: producer-consumer

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.