5 Oct The biggest contribution of the Java Concurrency in Practice to the Java world is not making concurrency easy but providing the correct and. “I was fortunate indeed to have worked with a fantastic team on the design and implementation of the concurrency features added to the Java platform in Java. 27 Jul Yes, it’s still valid in my mind. There isn’t big change in this area from 6 to 7. Fork- join is a new feature, which is very suitable for divide-and-conquer type of.

Author: Voodooramar Yozshura
Country: Burma
Language: English (Spanish)
Genre: Life
Published (Last): 26 July 2008
Pages: 483
PDF File Size: 16.30 Mb
ePub File Size: 19.95 Mb
ISBN: 243-7-50955-670-6
Downloads: 77627
Price: Free* [*Free Regsitration Required]
Uploader: Mikataur

Fortunately, Java provides synchronization mechanisms to coordinate such access. This is a tremendous convenience, because it makes data sharing much easier than prractise other inter-thread communications mechanisms.

I would say so. It’s probably saved me countless hours.

Is “Java Concurrency In Practice” still valid? – Stack Overflow

Java Concurrency in Practice provides you with the concepts and techniques needed to write safe and scalable Java programs for today’s—and tomorrow’s—systems. Rather than simply offering an inventory of concurrency APIs conncurrency mechanisms, it provides design rules, patterns, and mental models that make it easier to build concurrent programs that are both correct and performant.

December 14, at 9: Want to Read saving…. Its state cannot be modifled after construction; All its flelds are final;[12] and [12] It is technically possible to have an immutable object without all fields being final—String is such a class—but this relies on delicate reasoning about benign data races that requires a deep understanding of the Java Memory Model.

Java Concurrency in Practice [Book]

Effectively exploiting concurrency is becoming more and more important now that Moore’s Law is delivering more cores but not faster cores, and this book will show you how to do it. Stay ahead with the world’s most comprehensive technology and business learning xoncurrency.


For the past 30 years, computer performance has been driven by Moore’s Law; from now on, it will be driven by Amdahl’s Law. When an object is confined to a thread, such usage is automatically concurerncy even if the confined object itself is not.

Writing code that effectively exploits multiple processors can be very challenging. String lazily computes the hash code the first time hashCode is called and caches it in a nonfinal field, but this works only because that field can take on only one nondefault value that is the same every time uava is computed because it is derived deterministically from immutable state.

Java Concurrency in Practice

This is a book I am recommending to all my readers of The Java Xoncurrency Newsletterbecause it is interesting, useful, and relevant to the problems facing Java developers today. This book has been indispensable, and I am glad that I got it before I had decided to write even a single line of concurrent code. Just a moment while we sign you in to your Goodreads account.

Threads are a fundamental part of the Java platform. However, just wrapping the compound action with a synchronized block is not sufficient; if synchronization is used to coordinate access to a variable, it is needed everywhere that variable is accessed. JDK7 adds the fork-join framework but that is an enhancement rather than a replacement for earlier concurrency tools.

View table of contents. This is the general view of the book, which many Java developer will give you when you asked them about how did you find “Java Concurrency in Practice”but mine view is slightly different from them and that’s the main reason I still recommend Java Concurrency in Practice to any new Java developer or intermediate developers who want to master concurrency concepts.


Is “Java Concurrency in Practice” still valid in t Thread Safety Chapter 3. This is like reading the newspaper while waiting for the water to boil, rather than waiting for the water to boil before starting to read.

Java Concurrency in Practice Quotes

Share to Twitter Share to Facebook. Would you like to answer one of these unanswered questions instead? Difference between Autowired and Inject annotati However, developing, testing, and debugging multithreaded programs can still be very difficult; it is all too easy to create concurrent programs that appear to work, but fail when it matters most: On the other hand, immutable objects cannot be subverted in this manner by malicious or buggy code, so they are safe to share and publish freely without the need to make defensive copies.

How HashMap works in Java? Java Concurrency in Practice provides you with the concepts and techniques needed to write safe and scalable Java programs for today’s–and tomorrow’s–systems. Difference between Component, Service, Controll Now this same team provides the best explanation yet of these new features, and of concurrency in general.

Join Stack Overflow to learn, share knowledge, and build your career. Synchronization also has another significant, and subtle, aspect: Each page is filled with the problems and solutions! If the reads and writes occur in different threads, it is therefore possible to read a nonvolatile long and get back the high 32 bits of one value and the low 32 bits of another. Cancellation and Shutdown Chapter 8.