Reputation: 1877
Many people at SO adviced to dive into Java concurrency by reading Java Concurrency in Practice (JCIP), sometimes Doug Lea's book of 1999 is mentioned as well:
After reading JCIP, still feel the need for recapitulation/consolidation of the topic. This mainly because I feel the lack of examples in JCIP, however the book touches almost all aspects of Java multithreading.
Can you recommend any book / resources that would supplement JCIP by lots of examples of java.util.concurrent.* usage?
Any advice or links are welcome. Thanks a lot.
Upvotes: 22
Views: 7655
Reputation: 40276
I don't know any books that offer better examples then JCiP. Lea's book of 1999 is a great read for understanding the primitives that were written for Java 5. However, I asked Doug what book he recommends to read and he suggested The Art of Multiprocessor Programming. All examples that are available are written in Java (though there is some pseudo code).
A lot of 1.6 concurrency implementations (skip list algorithm for one) is written based on this book. It's a great read for how to correctly implement complicated algorithms.
Upvotes: 7
Reputation: 80192
here is a summary of the book with examples for your quick reference: https://blogs.oracle.com/carolmcdonald/entry/some_concurrency_tips, http://refcardz.dzone.com/refcardz/core-java-concurrency
here are few more examples: http://www.vogella.de/articles/JavaConcurrency/article.html
Upvotes: 9