Text Book Values
 Location:  Home » Computer Science » Java Concurrency in Practice  

Java Concurrency in Practice

Java Concurrency in PracticeAuthors: Brian Goetz, Tim Peierls, Joshua Bloch, Joseph Bowbeer, David Holmes, Doug Lea
Publisher: Addison-Wesley Professional

List Price: $59.99
Buy New: $33.78
as of 9/6/2010 11:26 CDT details
You Save: $26.21 (44%)



New (36) Used (20) from $30.00

Seller: new_books_today
Rating: 5.0 out of 5 stars 70 reviews
Sales Rank: 8835

Media: Paperback
Pages: 384
Number Of Items: 1
Shipping Weight (lbs): 1.5
Dimensions (in): 9.2 x 6.9 x 1.1

ISBN: 0321349601
Dewey Decimal Number: 005.133
EAN: 9780321349606
ASIN: 0321349601

Publication Date: May 19, 2006
Availability: Usually ships in 1-2 business days

Also Available In:

  • Kindle Edition - Java Concurrency in Practice

Accessories:


Similar Items:


Editorial Reviews:

Product Description

"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





Customer Reviews:
Showing reviews 1-5 of 70
1 2 3 4 5 6 ...14Next »



5 out of 5 stars Absolutely esential   September 5, 2010
William Atkins (New York, NY USA)
A comprehensive introduction to concurrency in Java, updated to cover the new executors/thread pools/futures paradigm. Spends a lot of time on the basic concepts of concurrency and then reviews basically every concurrency primitive in Java. I can't recommend this enough.


5 out of 5 stars Highly Applicable for Fast Improvements   August 24, 2010
Aaron Soule (Fort Worth, TX)
After just the first couple of chapters I was able to fix several major bugs in my multithreaded applications. I have a number of Java certifications, but I would never have known about classes like AtomicInteger and AtomicReference without reading this book. It is definitely important to get the most performance possible out of your programs, especially in a service-oriented environment with lots of whining customers and little budget for hardware upgrades.

I was really impressed with the ExecutorService framework for fixed thread pools. I was asked to create a pooling mechanism simulating an application server that can be used for standalone testing. I originally created and managed the threads myself in an array, but this book gave me the information for making more use of the Java API in keeping the code clean. Using Callable instead of Runnable is great for getting results from your processes after they complete, and Future gives you a hook for cancellation/interruption.

There is a really interesting discussion on JVM shutdown. I have sometimes had processes that threw a Runtime exception but still held a database lock, causing deadlocks and contention later on. This recommends doing the final resource cleanup in the finally block of the "run" method. However, what if a "grid" monitoring process forces shutdown of my application? Would the Object's final() method insure that that my resource was cleaned up so that no lock is still held by the grid's JVM? The answer seems to be that the final method is less reliably called than the finally block, and that you should make your tasks "interruptable" by polling an unbounded queue or calling the thread's isInterrupted() method frequently. My questions aren't all answered on this, but I still have another 150 pages to go in the book.



5 out of 5 stars Great book! Highly recommended.   June 21, 2010
lttldrgn (Florida)
1 out of 1 found this review helpful

Before purchasing this book I borrowed it from a friend. Unfortunately he needed it back before I could finish, but it didn't matter because I had already decided it should be part of my Java book collection. It fits right in with my other two favorite Java books, Effective Java and Java Puzzlers. This book does a great job of explaining concurrency in the Java language and the best practices. The book not only gives examples of what you should do, but also what not to do. The majority of the book describes Java concurrency practices at higher levels, but the last chapter also describes the Java Memory Model for those wanting to tie it all together. I would consider this book to be for intermediate and advanced Java programmers. As the book states, it is not an introduction to concurrency so you should at least have a good understanding of Java threading basics before jumping in.


3 out of 5 stars Good for beginners, but a drag otherwise   June 6, 2010
kartheek (CA USA)
1 out of 6 found this review helpful

I am surprised to find the majority of the reviewers rated this book 5. I find that this book is loaded with noise and you will have to wade through the authors excessive obsession to state the obvious over and over again, even in its "advanced topics" section. Such as:

"Performance is a moving target; yesterday's benchmark showing that X is faster than Y may already be out of date today."

Also, some of its examples uses non-standard annotations - @ThreadSafe, @GuardedBy, @NotTheadSafe, etc - that the authors hoped will be part of the JavaSE 7.0 release. (NOTE that this book was written when Java 6 was in beta stage)



5 out of 5 stars Great book!   May 16, 2010
Nardino Nicola
1 out of 1 found this review helpful

The most comprehensive java threads book I have ever read. It gives an in depth knowledge of Multithreading issues and how to address them in many different ways, either by using the java.util.concurrent package or by the primitives wait/notify/notifyAll. As to the latters, it sheds a clear light on how to avoid issues like missing signals and othersl.

Showing reviews 1-5 of 70
1 2 3 4 5 6 ...14Next »


CERTAIN CONTENT THAT APPEARS ON THIS SITE COMES FROM AMAZON SERVICES LLC. THIS CONTENT IS PROVIDED ‘AS IS’ AND IS SUBJECT TO CHANGE OR REMOVAL AT ANY TIME.
Powered by Associate-O-Matic

Featured Sites
Clff Notes Study Helpers

Other Specialty Shops by Sagetips, LLC
Car Navigation Systems | White Sox Gear | Fitted Hats | Gr8 Sk8 Gear | Lifesaving Home Defibrillators | High Mileage | Home Theater Shop

All products purchased through our site and using the Amazon.com checkout are covered by Amazon.com's A-to-Z buyer protection.