Java Threads, Second Edition
By Scott Oaks, Henry Wong
Second Edition
January 1999
Pages: 336
ISBN 10: 1-56592-418-5 |
ISBN 13: 9781565924185




(Average of 3 Customer Reviews)
This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.
The latest edition is also available on Safari Books Online.
Book description
Revised and expanded to cover Java 2, Java Threads shows you how to take full advantage of Java's thread facilities: where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes. It thoroughly covers the Thread and ThreadGroup classes, the Runnable interface, and the language's synchronized operator. The book pays special attention to threading issues with Swing, as well as problems like deadlock, race condition, and starvation to help you write code without hidden bugs.
Full Description
Threads aren't a new idea: many operating systems and languages support them. But despite widespread support, threads tend to be something that everyone talks about, but few use. Programming with threads has a reputation for being tricky and nonportable.
Not so with Java. Java's thread facilities are easy to use, and--like everything else in Java--are completely portable between platforms. And that's a good thing, because it's impossible to write anything but the simplest applet without encountering threads. If you want to work with Java, you have to learn about threads.
This new edition shows you how to take full advantage of Java's thread facilities: where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes.
Java Threads discusses problems like deadlock, race condition, and starvation in detail, helping you to write code without hidden bugs. It brings you up to date with the latest changes in the thread interface for JDK 1.2.
The book offers a thorough discussion of the Thread and ThreadGroup classes, the Runnable interface, the language's synchronized operator. It explains thread scheduling ends by developing a CPUSchedule class, showing you how to implement your own scheduling policy. In addition, Java Threads shows you how to extend Java's thread primitives. Other extended examples include classes that implement reader/writer locks, general locks, locks at arbitrary scope, and asynchronous I/O. This edition also adds extensive examples on thread pools, advanced synchronization technique, like condition variables, barriers, and daemon locks. It shows how to work with classes that are not thread safe, and pays special attention to threading issues with Swing. A new chapter shows you how to write parallel code for multiprocessor machines.
In short, Java Threads covers everything you need to know about threads, from the simplest animation applet to the most complex applications. If you plan to do any serious work in Java, you will find this book invaluable. Examples available online. Covers Java 2.
Browse within this book
Cover
| Table of Contents
| Colophon
Featured customer reviews

Java Threads, 2nd Edition Review,
June 26 2002
Submitted by Kathrin Prettl
[
Respond |
View]
What really unnerves me about the book is that at the beginning the examples always work with applets instead from the console. I don't want to learn about applets but about threads! Also I think this makes it more complicated than necessary.
Java Threads, 2nd Edition Review,
February 09 2001
Submitted by VishnuVardhan Vempati
[
Respond |
View]
Java Threads is a very good book for those who want to do multithreaded programming.This one of the execellent books that come from Java series of O'Reilly publishers. It covers the in and outs of the Java Threads.
Thanks,
Vishnu
Java Threads, 2nd Edition Review,
November 28 2000
Submitted by Manish Patel
[
Respond |
View]
It is an excellent book i have ever read on thread programming with JAVA. It covers all my doubts. Exammples given in this books are excellent and easy to understand.
Read all reviews
Java Threads, 2nd Edition Review,
February 25 2000
Submitted by Jignesh
[
Respond |
View]
Best book on the concepts of java threads
Java Threads, 2nd Edition Review,
August 25 1999
Submitted by uli
[
Respond |
View]
One of the best technical books I´ve ever read.
While reading there comes a question in your mind...
and there is exactly this question written down,
of course answered
Java Threads, 2nd Edition Review,
May 25 1999
Submitted by bovine_duck
[
Respond |
View]
Really excellent book. Takes you into a new area of thinking
about how to design and implement your Java code.
Also makes sense of why some programs behave like
dogs.
Thanks guys
Java Threads, 2nd Edition Review,
December 06 1998
Submitted by Kevin M Lanaghan
[
Respond |
View]
One of the better books on threads, and Certainly reccommended. But some the algorithms, such as reader/writer locking are overly complex. The performance of some of the examples tends to be worse than expected.
Media reviews
"If you are new to Java programming and have yet to conquer threads, Java Threads is an excellent resource. You'll get a look into the basics of Java threading, and learn the techniques necessary to get your programs to function properly in a multithreaded world. Five stars" --John Zukowski, Java World, 03/2001
"This is a good book, and certainly, if you're using threads in Java non-trivially then you should have this book. Otherwise, borrow a copy and read the first half to make yourself aware of the threading issues in Java. Even better, think how your code affects others; the section on mixing threads with thread unsafe classes should make you aware of the wider issues surrounding your code, and hopefully, you'll produce well behaved classes that will be easily multi- threaded if the need arises? Do you use the collections? Think hard..."1999 --Steve Cornish, C Vu, September 1999
"A very useful well-written reference suitable for Java systems developers and as a second level text for students on computing science and IT oriented courses. Highly recommended!" --Brian Bamer, C Vu January 1998
Read all reviews