This article is a computer class of high-quality pre-sale recommendation >>>>"Java Concurrent programming Art"
Ali Department and 1th Shop Senior Technical Experts writing, Java concurrent programming in the field of the tripod, content in Infoq and other communities are highly recognized, from the JDK source code, JVM, CPU and other aspects of the comprehensive analysis and explanation of Java Concurrency Programming framework, principles and core technology
Editorial recommendations
Ali Department and 1th Shop Senior technical experts to write, Java Concurrent Programming field of the Tripod
Content in the INFOQ community is highly recognized, from the JDK source code, JVM, CPU and other aspects of the comprehensive analysis and explanation of Java Concurrency Programming framework, principles and core technology
Objective
Why did you write this book ?
Remember the first time I wrote a concurrent programming article or in 2012, it took several weeks to write an article, "in-depth analysis of the principles of volatile implementation," Ready to be published in your own blog. In the advice of colleagues to build the law, with a try to the mentality of the infoq, fortunately, half an hour later by the Infoq editor to accept the reply, happy without words. This is the first time I have published articles in the professional media, and then with the continuous encouragement and support of Infoq editor Zhang Long, I have published several articles related to concurrent programming in Infoq, thus forming a "chat concurrency" column. During the writing of this column, I was quick to grow and very helpful, thanks to Infoq's editors. In 2013, Fortune brother, who found me, asked if he was interested in writing a book, and felt that his qualifications were shallow, politely refused. Then I kept in touch with fortune and finally allowed me to spend two years to finish the book, so I agreed. Because of the technical point in the field of concurrent programming is very many and deep, so we have invited colleagues Wei Peng and friend Xiao Ming together to participate in the writing of this book.
the process of writing a book is also the process of sorting out the technical points that I have studied and mastered, hoping that this book will help readers to master concurrent programming techniques quickly.
This book is a total of 11 chapters, written by three authors, of which the 3rd and 10th chapters are written by Cheng, 4th and 5th chapters are written by Wei Peng, and the other 7 chapters are written by Fang Fei.
featured in this book
This book unifies the JDK source code to introduce the Java concurrency frame, the thread pool realization principle, helps the reader to know its why.
The book's analysis of the principles is not confined to the Java level, but goes deep into the JVM, and even the CPU level, to help readers see concurrency from the bottom up.
This book combines the online application, and gives some practical techniques of concurrent programming, as well as the steps and ideas of dealing with concurrency problems on line.
Reader Object
Java Development Engineer
Architect
Concurrent Programming enthusiasts
teachers and students of colleges and universities offering relevant courses
How to read this book
before reading this book, you must have a certain Java Foundation and development experience, preferably with a certain basis for concurrent programming. If you are a beginner in concurrent programming, it is recommended to read the book sequentially and follow the examples in the book to encode and combat. If you have a certain amount of concurrent programming experience, you can use this book as a manual to see the chapters you need to learn directly. The following is a basic introduction to each section.
the 1th chapter introduces the challenges of Java concurrency programming, explaining to the reader what problems may be encountered in the world of concurrency programming and how to resolve them.
The 2nd chapter introduces the underlying implementation principles of Java concurrency Programming, and describes how the CPU and JVM can help Java implement concurrent programming.
The 3rd chapter introduces the in-depth introduction of the Java memory model. Communication between Java threads is completely transparent to programmers, and memory visibility issues can easily plague Java programmers, and this chapter attempts to uncover the mysteries of the Java memory model.
The 4th chapter begins with the introduction of the benefits of multithreading, describes how to start and terminate threads and the state of threads, and describes in detail the basic mode of communication between multithreading and the classic paradigm of wait/notification.
The 5th chapter introduces the APIs and components associated with locks in Java and the package, as well as how these APIs and components are used and implemented in detail.
. The 6th chapter introduces most of the concurrent containers in Java, and deeply analyzes its implementation principles, so that readers appreciate the master's design skills.
The 7th chapter introduces the atomic operation classes in Java, and gives some examples.
The 8th chapter introduces the Concurrency tool classes provided in Java, which is the Swiss Army knife in concurrent programming.
The 9th chapter introduces the principle of threading pool implementation in Java and its usage recommendations.
The 10th chapter introduces the whole structure and member components of the executor framework.
The 11th chapter introduces several concurrent programming practices, as well as troubleshooting the problems caused by concurrent programming.
Errata and Support
Because the author's level is limited, the writing time is hasty, the book inevitably will appear some mistake or the inaccurate place, requests the reader to criticize correct. To do this, deliberately create a site http://ifeve.com/book/for online support and contingency scenarios. You can publish the errors in the book on the Errata page, and if you encounter any problems, you can also visit the Q&a page, I will try to provide readers with the most satisfactory answers online. All the source files in the book in addition to download from the website, but also from the concurrent programming site download, I will update the corresponding features timely release. If you have more valuable comments, also welcome to send e-mail to the email [email protected], look forward to your sincere feedback.
Thanks
Thanks to Yang Fuchuan, Gao ya, Sun Hailiang of the mechanical industry press, I have been supporting my writing for more than a year, and your encouragement and help lead me to complete the manuscript successfully.
Thank Fang Positron's teacher Liu, is he brought me into the object-oriented world.
Thanks to my supervisor Zhu, who has given me a lot of help and support in his work and life, and often inspired me to complete this book.
Finally thanks to my parents, the wife and mother, thank you for your support, and always instill confidence and strength for me!
With this book dedicated to my son Fang Xihao, I hope he can grow up healthily, as well as many friends who love concurrent programming, I hope you can work happily, serious life!
Fang Fei
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The art of Java concurrent Programming--Interactive publishing network