Java Threads, Third Edition
By Scott Oaks, Henry Wong
September 2004
Pages: 358
ISBN 10: 0-596-00782-5 |
ISBN 13: 9780596007829
![]()
![]()
![]()
![]()
(3) (Average of 2 Customer Reviews)
Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition of the classic Java Threads shows you how to take full advantage of Java's threading facilities and brings you up-to-date with the watershed changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming.
Full Description
- Lock starvation and deadlock detection
- Atomic classes and minimal synchronization (J2SE 5.0)
- Interaction of Java threads with Swing, I/O, and Collection classes
- Programmatically controlled locks and condition variables (J2SE 5.0)
- Thread performance and security
- Thread pools (J2SE 5.0)
- Thread groups
- Platform-specific thread scheduling
- Task schedulers (J2SE 5.0)
- Parallelizing loops for multiprocessor machines
Register your book | Submit Errata | Examples
Browse within this book
| Table of Contents | Index | Sample Chapter | Colophon
Book details
Third Edition: September 2004
ISBN: 0-596-00782-5
Pages: 358
Average Customer Reviews: ![]()
![]()
![]()
![]()
(3) (Based on 2 Reviews)
Featured customer reviews
A must-read, November 29 2006
I happen not to agree with the previous review, everything is clearly explained in the book. For instance, p40, a lock is explained as:
When a method is declared synchronized, the thread that wants to execute it must acquire a token, which we call a lock (...) Only one thread can grab a lock at a time (...) Upon completion of the method, the lock is automatically released.
Sure, the thread topic is not for beginners, but since every program is going to use threads whether you want it or not, any self-respecting programmer should have a good knowledge of threads.
This book also covers all the new thread-related class of Java 5.0, which is the reason why I bought it.
The Basics Are Missing, July 30 2005
Very poor book. Many essential explanations are missing, possibly due in part to an apparent obsession with race conditions. Although race conditions are a very important topic, and they should be thoroughly covered in a book such as this, many of them can be avoided by knowing the basics, which this book does not explain well.
For instance, look at lock() and unlock(). What is being locked? What is being unlocked? Basic questions, right? We are never really told. Although there is much text devoted to these methods, it is left to the reader to figure out the answer to these questions.
The same is true for wait() and notify(). What is being waited on? Who is being notified? We are never really told, but rather we are left to try to put the descriptions together in a way that makes sense.
There are many other areas of total confusion (including many pages devoted to a "race condition" that apparently does not exist), but the above examples should give you an idea of the caliber of this book.
BTW, I have been in this business for 30+ years.


