Advanced Search
Start Your Free Trial

Overview

Other Readers Also Read...
Java Generics and Collections, 1st Edition

Java Generics and Collections, 1st Edition
by Maurice Naftalin; Philip Wadler

Java Concurrency in Practice

Java Concurrency in Practice
by Brian Goetz; Tim Peierls; Joshua Bloch; Joseph Bowbeer; David Holmes; Doug Lea

Java NIO

Java NIO
by Ron Hitchens

Java™ I/O, 2nd Edition

Java™ I/O, 2nd Edition
by Elliotte Rusty Harold

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. Java's threading system is simple relative to other threading systems. In earlier versions of Java, this simplicity came with tradeoffs: some of the advanced features in other threading systems were not available in Java. J2SE 5.0 changes all that: it provides a large number of new thread-related classes that make the task of writing multithreaded programs that much easier. You'll learn where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes. This book discusses problems like deadlock, race conditions, and starvation in detail, helping you to write code without hidden bugs. Java Threads, Third Edition, has been thoroughly expanded and revised. It incorporates the concurrency utilities from java.util.concurrent throughout. New chapters cover thread performance, using threads with Swing, threads and Collection classes, thread pools, and threads and I/O (traditional, new, and interrupted). Developers who cannot yet deploy J2SE 5.0 can use thread utilities provided in the Appendix to achieve similar functionality with earlier versions of Java. Topics include:

  • 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

In short, this new edition of Java Threads covers everything you need to know about threads, from the simplest animation program to the most complex applications. If you plan to do any serious work in Java, you will find this book invaluable. Scott Oaks is a senior software engineer for the Java Performance Engineering group at Sun Microsystems and the author of four books in the O'Reilly Java series. Formerly a senior systems engineer at Sun Microsystems, Henry Wong is an independent consultant working on various Java related projects.

Amazon.com® Reader Reviews (Ranked by Helpfulness)

Average Amazon.com® Rating: 3.5 out of 5 rating Based on 42 Ratings

review of first edition - 2006-06-01
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Before I bought this book, I had to prototype threading examples in my own workspace, setting up race conditions and such, but it was a lot of work and left a lot unexplained.

Scott Oaks, the author, did a good job of describing the synchronization process and the various Object methods relating to threading protocol. There were plenty of good examples, and clarification on several minor technical points including: how the wait/notify methods release monitors, the determinability of prioritization, and the practical uses of threadgroups. If you have nagging questions, you may find them answered here.

O'Reilly books are small-sized, which makes for easy carrying and storage. Little if any of their content is redundant or inaccurate. Given how dry the material is, O'Reilly astounds me by consistently finding authors who can write well, have something to say, and whose works can be read in a sitting.

Of course, it's important to mention that some things have changed since the first edition of this book. Methods like resume(), suspend(), and stop() have been deprecated due to their unpredictablity; the JVM will now enable programmers to address multiple processes; and there are a variety of classes which facilitate thread administration. A newer edition will bring you up to speed on those details, but this first edition is still a valid reference in all other respects.

Lots of experimental data, clear answers - 2007-04-02
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book provides answers to questions on threading that have confused me for a long time:
1. Why use a thread pool and why not?
2. How expensive are synchronization, thread creation and concurrent collections?

It clears up a lot of myths and rumors I have heard.

Tutorial more than reference - 2009-07-27
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book is fine if you are looking to start at page 1 and buy into their ongoing eg program. My gripe is that
the eg program is Swing based. I hate Swing eg's in general. They generally just make the specific point that is being demonstrated more difficult to identify. So, please, all you authors out there, for the love of god don't use Swing eg's unless your writing a book on Swing.
It's the sort of book that makes you work to understand things that you already know.

right book - 2009-05-13
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
after initial issues with sellers that did not reply to 5 emails the book arrived in time and in very good status.

Alright one could say - 2008-08-13
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Not the best for learning about Java Threads, but you can use it as a reference when you have a different better book to understand all of the technical jargon...

Some information on this page was provided using data from Amazon.com®. View at Amazon >


About Safari Books Online • Terms of Service • Privacy Policy • Contact Us • Corporate Licenses • Help • Accessibility | See us on FacebookSee us on Linked InSee us on TwitterRSS

Copyright 2009 Safari Books Online. All rights reserved.