Java Concurrency in Practice

Java Concurrency in Practice

  • Downloads:9602
  • Type:Epub+TxT+PDF+Mobi
  • Create Date:2021-05-28 11:53:49
  • Update Date:2025-09-07
  • Status:finish
  • Author:Brian Goetz
  • ISBN:0321349601
  • Environment:PC/Android/iPhone/iPad/Kindle

Summary

"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 5。0 and Java 6。 Now this same team provides the best explanation yet of these new features, and of concurrency in general。 Concurrency is no longer a subject for advanced users only。 Every Java developer should read this book。"
--Martin Buchholz
JDK Concurrency Czar, Sun Microsystems

"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。 Writing code that effectively exploits multiple processors can be very challenging。 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。"
--Doron Rajwan
Research Scientist, Intel Corp

"This is the book you need if you're writing--or designing, or debugging, or maintaining, or contemplating--multithreaded Java programs。 If you've ever had to synchronize a method and you weren't sure why, you owe it to yourself and your users to read this book, cover to cover。"
--Ted Neward
Author of Effective Enterprise Java

"Brian addresses the fundamental issues and complexities of concurrency with uncommon clarity。 This book is a must-read for anyone who uses threads and cares about performance。"
--Kirk Pepperdine
CTO, JavaPerformanceTuning。com

"This book covers a very deep and subtle topic in a very clear and concise way, making it the perfect Java Concurrency reference manual。 Each page is filled with the problems (and solutions!) that programmers struggle with every day。 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。"
--Dr。 Cliff Click
Senior Software Engineer, Azul Systems

"I have a strong interest in concurrency, and have probably written more thread deadlocks and made more synchronization mistakes than most programmers。 Brian's book is the most readable on the topic of threading and concurrency in Java, and deals with this difficult subject with a wonderful hands-on approach。 This is a book I am recommending to all my readers of The Java Specialists' Newsletter, because it is interesting, useful, and relevant to the problems facing Java developers today。"
--Dr。 Heinz Kabutz
The Java Specialists' Newsletter

"I've focused a career on simplifying simple problems, but this book ambitiously and effectively works to simplify a complex but critical subject: concurrency。 Java Concurrency in Practice is revolutionary in its approach, smooth and easy in style, and timely in its delivery--it's destined to be a very important book。"
--Bruce Tate
Author of Beyond Java

" Java Concurrency in Practice is an invaluable compilation of threading know-how for Java developers。 I found reading this book intellectually exciting, in part because it is an excellent introduction to Java's concurrency API, but mostly because it captures in a thorough and accessible way expert knowledge on threading not easily found elsewhere。"
--Bill Venners
Author of Inside the Java Virtual Machine

Threads are a fundamental part of the Java platform。 As multicore processors become the norm, using concurrency effectively becomes essential for building high-performance applications。 Java SE 5 and 6 are a huge step forward for the development of concurrent applications, with improvements to the Java Virtual Machine to support high-performance, highly scalable concurrent classes and a rich set of new concurrency building blocks。 In Java Concurrency in Practice , the creators of these new facilities explain not only how they work and how to use them, but also the motivation and design patterns behind them。

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: in production, under heavy load。 Java Concurrency in Practice arms readers with both the theoretical underpinnings and concrete techniques for building reliable, scalable, maintainable concurrent applications。 Rather than simply offering an inventory of concurrency APIs and mechanisms, it provides design rules, patterns, and mental models that make it easier to build concurrent programs that are both correct and performant。

This book covers:


Basic concepts of concurrency and thread safety Techniques for building and composing thread-safe classes Using the concurrency building blocks in java。util。concurrent Performance optimization dos and don'ts Testing concurrent programs Advanced topics such as atomic variables, nonblocking algorithms, and the Java Memory Model

Download

Reviews

Durlabh Sharma

The best in field of Java Concurrency!

Les Vogel

Dated, but usefulThat last specific version mentioend is Java 5, and we are waiting for Java 16 to be released in a few weeks。 A lot has changed, yet it’s still mostly relevant。

Dinesh Vijayakumar

Extremely useful book IMHO。 Glad that i was able to complete this book after multiple attempts previously。 This book is a must for Java developers who want to understand the finer details of Concurrency, Synchronization, Atomic Variables, Java Memory Model, Safe Publication。 The book gradually progresses to advanced topics and the concepts were elucidated in greater detail with sample code。 I feel confident in tackling concurrency related problems in Java。 Plus i had a tour through the java。util Extremely useful book IMHO。 Glad that i was able to complete this book after multiple attempts previously。 This book is a must for Java developers who want to understand the finer details of Concurrency, Synchronization, Atomic Variables, Java Memory Model, Safe Publication。 The book gradually progresses to advanced topics and the concepts were elucidated in greater detail with sample code。 I feel confident in tackling concurrency related problems in Java。 Plus i had a tour through the java。util。concurrent classes。 Some of the analogies used to explain ideas were near perfect。 All in all, a great addition to your arsenal if you are a Long-Java dev。 。。。more

Christian

Still in the process of reading this, but so far I've found it to be really approachable and a relatively easy read。 Properly handling concurrency is a notoriously difficult problem but Brian Goetz spends a good amount of time going over it with not only practical Java examples, but also a good explanation of the underlying mechanisms that make it difficult to get correct which would be applicable to any programming language。 Appreciate having the mix of clearly labeled "bad"/naive examples to a Still in the process of reading this, but so far I've found it to be really approachable and a relatively easy read。 Properly handling concurrency is a notoriously difficult problem but Brian Goetz spends a good amount of time going over it with not only practical Java examples, but also a good explanation of the underlying mechanisms that make it difficult to get correct which would be applicable to any programming language。 Appreciate having the mix of clearly labeled "bad"/naive examples to approach concurrency + why they have issues along with the "correct" versions - and the trade-offs made by using different approaches。 。。。more

Liana

I had been trying to read this iconic book on Java concurrency for years, and today I've finally finished it。The book itself is 5/5 and I've already used some tricks from it in my work。However programming books are so hard to read, because it's really inconvenient to match the code and explanations。 I had been trying to read this iconic book on Java concurrency for years, and today I've finally finished it。The book itself is 5/5 and I've already used some tricks from it in my work。However programming books are so hard to read, because it's really inconvenient to match the code and explanations。 。。。more

Andrey

Read this book several times and still come back from time to time。 The book brings you on new level。

Rostislav Vatolin

I enjoyed reading this book by Brian Goetz。 I learned a lot more than I knew about synchronization, locks, CAS, wait/notify, happens-before。 I recommend。

Akash Jain

Must read for any software developer

Vzh

Old, but must read。

Brian

(4。5) Good to have read once, more detail than can be absorbed in one go, probably good reference but we’ll seeRemains to be seen whether this will be useful as reference for a specific scenario or question I run into, but I’m optimistic。 Haven’t written multi-threaded Java in a looooooong time and much has changed, and this really helped me to catch up。 So much less wild-west, which feels comforting。I do wonder how much of this is true/applicable now, but soon will not be (even if we stick with (4。5) Good to have read once, more detail than can be absorbed in one go, probably good reference but we’ll seeRemains to be seen whether this will be useful as reference for a specific scenario or question I run into, but I’m optimistic。 Haven’t written multi-threaded Java in a looooooong time and much has changed, and this really helped me to catch up。 So much less wild-west, which feels comforting。I do wonder how much of this is true/applicable now, but soon will not be (even if we stick with Java/JVM languages for a while)。 。。。more

Henrik Dohlmann

Saved me more than once。

Ilya

Крайне полезная книга, которую необходимо прочитать всем, кто пишет на Java。 Читается долго, но довольно легко, даже на английском。 )

Robert

One of the few must read books for anbody writing Java for a living。 Before this books I was only vaguely aware of the pitfalls with concurrency in Java。 The first part of the book "Fundamentals" helped me understand the concepts involved and put my reasoning about concurrent code on a more solid foundation。 The second part of the book are about structuring using the executor framework, which is also interesting if you have never work with it before。But for me the real value came from the first One of the few must read books for anbody writing Java for a living。 Before this books I was only vaguely aware of the pitfalls with concurrency in Java。 The first part of the book "Fundamentals" helped me understand the concepts involved and put my reasoning about concurrent code on a more solid foundation。 The second part of the book are about structuring using the executor framework, which is also interesting if you have never work with it before。But for me the real value came from the first part and some of the advanced topics in part 3 like livness hazards。If you work with multithreaded Java applications and can't answer one of these questions "what exactly does the volataile modifier do?", "what establishes a happens-before relationship?", "what constitutes safe publication?", or "why is double checked locking bad?" it is time to read this book! 。。。more

Dimos Raptis

A must for every Java developer, it explains a rather complicated aspect of computer science in a quite simplified way。 Not sure how up-to-date it will be in the next years with new APIs & abstractions coming out。

Vadim Radchikov

Sometime s bit obsolete regarding to modern gc's Sometime s bit obsolete regarding to modern gc's 。。。more

Viraj Bhosle

Must for understanding Java multi-threading。 Java Concurrency in Practice explains multi-threading clearly with examples。 It show how we can build complex and robust multi-threading code by using simple building blocks。 This books gave me confidence to write concurrent code, enlightened me about all the pitfalls。Beware, this books is not for light-hearted。 Content is dense, you may need to re-read chapters few times。 If you are the person who gives up on a book because you don't get it, then it' Must for understanding Java multi-threading。 Java Concurrency in Practice explains multi-threading clearly with examples。 It show how we can build complex and robust multi-threading code by using simple building blocks。 This books gave me confidence to write concurrent code, enlightened me about all the pitfalls。Beware, this books is not for light-hearted。 Content is dense, you may need to re-read chapters few times。 If you are the person who gives up on a book because you don't get it, then it's not for you。Though content itself is complex, author has done well to deliver it。 No blogs and you tube videos can help you understand the multi-threading so well。 You may not understand this book, but understand blogs and videos because this books takes you to the depth and blogs just have beginner content。 。。。more

Paulina Kantor

Quite demanding book, but has everything about concurrency that every developer should know

Caroline

Before I read this book, I thought, I already understand concurrency。 How much Java-specific stuff can there be to learn? If I want to use some library, e。g。 ConcurrentHashMap, I'll read its documentation before I use it。 That should be good enough。I was wrong。 Partly this is because I didn't actually understand concurrency as well as I thought。 I was used to thinking in terms of interleavings and ignoring reordering, which is insufficient! This led to some big surprises when reading possible pr Before I read this book, I thought, I already understand concurrency。 How much Java-specific stuff can there be to learn? If I want to use some library, e。g。 ConcurrentHashMap, I'll read its documentation before I use it。 That should be good enough。I was wrong。 Partly this is because I didn't actually understand concurrency as well as I thought。 I was used to thinking in terms of interleavings and ignoring reordering, which is insufficient! This led to some big surprises when reading possible program outputs in this book。 But there was also a lot of stuff specific to the Java memory model covered here that I didn't know about, such as safe publication。I'd say this book, or something else with equivalent Java-specific info, is a must-read for anyone developing concurrent programs in Java。 。。。more

Madhur Bhargava

This book is the final word on threading and concurrency in Java。 I always thought concurrency was a bit tricky but this book really takes it to the next level。 The author provides a thorough explanations of the under the hood workings of Java Concurrency & the JMM。 Some of the explanations in the book can stump even the expert Java programmers with several 'Aha' moments。 I specifically enjoyed the last chapter which highlights the main points of JSR 133 & JMM。 Truly a must read for any serious This book is the final word on threading and concurrency in Java。 I always thought concurrency was a bit tricky but this book really takes it to the next level。 The author provides a thorough explanations of the under the hood workings of Java Concurrency & the JMM。 Some of the explanations in the book can stump even the expert Java programmers with several 'Aha' moments。 I specifically enjoyed the last chapter which highlights the main points of JSR 133 & JMM。 Truly a must read for any serious Java Programmer。 。。。more

Anand Kumar

Still relevant and usefulDated book but still relevant and useful。 Doesn’t have newer API like CompletableFutures but has enough meat in it to get a good hang of java concurrency。

Giles DSilva

A must read for every Java developerWell written, easy to follow, simple examples, JVM internals, myths busted, mistakes to be avoided, scaling applications, data structures and collections to use。I feel like an expert in multitureading after reading this book but I know I have to read it a couple more times and practice a lot

DANIEL

One of the best books about concurrency in Java。 It explains in a really clear way the whole concepts about this dense topic。 It is full of code examples and, if you want to understand how to manage the concurrency in Java in a low level, you have to read it。Recommended 100%

Jesse Malinosky

Really good read。 The first few chapters explain some of common hurdles encountered when writing concurrent applications more clearly than I have seen elsewhere。

Isidro López

This was my third attempt in the last 10 years to read it。。。 and finally succeeded, yuhuu :-DIt's that kind of book where you think: "How have I been able to work without reading it?" ^___^I feel that even in 2019 it brings a lot of value, many things still apply。On the other hand, is far away from a beginner-intermediate book, I would only recommend it to people who have been working with Java for several years。 This was my third attempt in the last 10 years to read it。。。 and finally succeeded, yuhuu :-DIt's that kind of book where you think: "How have I been able to work without reading it?" ^___^I feel that even in 2019 it brings a lot of value, many things still apply。On the other hand, is far away from a beginner-intermediate book, I would only recommend it to people who have been working with Java for several years。 。。。more

Andrzej Hołowko

A must-read position for all Java developers。 It doesn't cover the newest versions of Java API, but it's still worthwhile to read。 A must-read position for all Java developers。 It doesn't cover the newest versions of Java API, but it's still worthwhile to read。 。。。more

yubo

This is must-read book for anyone what want to be an engineer instead of just a coder。

Akash

This book is very good to get a clear understanding of threading in JAVA。 Also, this book is not for beginners。

Jiacai Liu

A must be to master concurrency, not only for Java。

Wing Kwan

Some complicated concepts the book elaborates don't provide enough examples so that it's not easy to understand how it works Some complicated concepts the book elaborates don't provide enough examples so that it's not easy to understand how it works 。。。more

snpefk

Ожидал просветления — получил завуалированный вариант пасты "не лезь, блядь, дебил, сука, ебаный, она тебя сожрёт" Ожидал просветления — получил завуалированный вариант пасты "не лезь, блядь, дебил, сука, ебаный, она тебя сожрёт" 。。。more