Java Concurrency in Practice (häftad)
Häftad (Paperback)
Antal sidor
illustrated ed
Peierls, Tim / Bloch, Joshua / Bowbeer, Joseph / Holmes, David / Lea, Doug
235 x 178 x 22 mm
620 g
Antal komponenter
Java Concurrency in Practice (häftad)

Java Concurrency in Practice

(2 röster)
Häftad Engelska, 2006-05-01
Skickas inom 5-8 vardagar.
Fri frakt inom Sverige för privatpersoner.
Finns även som
Visa alla 3 format & utgåvor
"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

"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 compil...
Visa hela texten

Passar bra ihop

  1. Java Concurrency in Practice
  2. +
  3. Augmented Environments for Computer-Assisted Interventions

De som köpt den här boken har ofta också köpt Augmented Environments for Computer-Assisted In... av Cristian A Linte, Elvis Chen, Marie-Odile Berger, John T Moore, David Holmes (häftad).

Köp båda 2 för 1110 kr


Har du läst boken? Sätt ditt betyg »

Bloggat om Java Concurrency in Practice

Övrig information

Brian Goetz is a Principal Consultant at at Quiotix, a software development and consulting firm. In addition to being a software developer for over 18 years, Goetz serves on the JCP Expert Groups for JSR 107 (Java Caching API) and 166 (Concurrency Utilities).Tim Peierls is President of Prior Artisans, LLC and a member of the Expert Groups for JSR 166 (Concurrency Utilities) and JSR 201 (Language Enhancements).Joshua Bloch is a principal engineer at Google and a Jolt Award-winner. He was previously a distinguished engineer at Sun Microsystems and a senior systems designer at Transarc. Josh led the design and implementation of numerous Java platform features, including JDK 5.0 language enhancements and the award-winning Java Collections Framework. He holds a Ph.D. in computer science from Carnegie Mellon University.David Holmes is director of DLTeCH Pty Ltd, located in Brisbane, Australia. He specializes in synchronization and concurrency and was a member of the JSR-166 expert group that developed the new concurrency utilities. He is also a contributor to the update of the Real-Time Specification for Java, and has spent the past few years working on an implementation of that specification.Doug Lea is one of the foremost experts on object-oriented technology and software reuse. He has been doing collaborative research with Sun Labs for more than five years. Lea is Professor of Computer Science at SUNY Oswego, Co-director of the Software Engineering Lab at the New York Center for Advanced Technology in Computer Applications, and Adjunct Professor of Electrical and Computer Engineering at Syracuse University. In addition, he co-authored the book, Object-Oriented System Development (Addison-Wesley, 1993). He received his B.A., M.A., and Ph.D. from the University of New Hampshire.


Listings     xii
Preface     xvii

Chapter 1: Introduction     1

1.1  A (very) brief history of concurrency       1
1.2  Benefits of threads      3
1.3  Risks of threads       5
1.4  Threads are everywhere       9

Part I: Fundamentals     13

Chapter 2: Thread Safety     15

2.1  What is thread safety?      17
2.2  Atomicity     19
2.3  Locking     23
2.4  Guarding state with locks      27
2.5  Liveness and performance       29

Chapter 3: Sharing Objects     33

3.1  Visibility      33
3.2  Publication and escape       39
3.3  Thread confinement       42
3.4  Immutability       46
3.5  Safepublication       49

Chapter 4: Composing Objects     55

4.1  Designing a thread-safe class      55
4.2  Instance confinement      58
4.3  Delegating thread safety      62
4.4  Adding functionality to existing thread-safe classes       71
4.5  Documenting synchronization policies       74

Chapter 5: Building Blocks     79

5.1  Synchronized collections       79
5.2  Concurrent collections     84
5.3  Blocking queues and the producer-consumer pattern     87
5.4  Blocking and interruptible methods     92
5.5  Synchronizers     94
5.6  Building an efficient, scalable result cache      101

Part II: Structuring Concurrent Applications     111

Chapter 6: Task Execution     113

6.1  Executing tasks in threads      113
6.2  The Executor framework     117
6.3  Finding exploitable parallelism      123

Chapter 7: Cancellation and Shutdown     135

7.1  Task cancellation      135
7.2  Stopping a thr...