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