Java Concurrency in Practice

Paperback
from $0.00

Author: Brian Goetz

ISBN-10: 0321349601

ISBN-13: 9780321349606

Category: Network Programming

Search in google:

As processors become faster and multiprocessor systems become cheaper, the need to take advantage of multithreading in order to achieve full hardware resource utilization only increases the importance of being able to incorporate concurrency in a wide variety of application categories. For many developers, concurrency remains a mystery. Developing, testing and debugging multithreaded programs is extremely difficult because concurrency hazards do not manifest themselves uniformly or reliably. This book is intended to be neither an introduction to concurrency (any threading chapter in an "intro" book does that) nor is it an encyclopedic reference of All Things Concurrency (that would be Doug Lea's Concurrent Programming in Java). Instead, this title is a combination of concepts, guidelines, and examples intended to assist developers in the difficult process of understanding concurrency and its new tools in J2SE 5.0. Filled with contributions from Java gurus such as Josh Bloch, David Holmes and Doug Lea, this book provides any Java programmers with the basic building blocks they need to gain a basic understanding of concurrency and its benefits.

1Introduction12Thread safety153Sharing objects334Composing objects555Building blocks796Task execution1137Cancellation and shutdown1358Applying thread pools1679GUI applications18910Avoiding liveness hazards20511Performance and scalability22112Testing concurrent programs24713Explicit locks27714Building custom synchronizers29115Atomic variables and nonblocking synchronization31916The Java memory model337AAnnotations for concurrency353