Please consider the latest edition.
-
Chapter 1 Introduction to Threading
-
Java Terms
-
Thread Overview
-
Why Threads?
-
Summary
-
-
Chapter 2 The Java ThreadingAPI
-
Threading Using the Thread Class
-
Threading Using the Runnable Interface
-
The Life Cycle of a Thread
-
Thread Naming
-
Thread Access
-
More on Starting, Stopping, and Joining
-
Summary
-
-
Chapter 3 Synchronization Techniques
-
A Banking Example
-
Reading Data Asynchronously
-
A Class to Perform Synchronization
-
The Synchronized Block
-
Nested Locks
-
Deadlock
-
Return to the Banking Example
-
Synchronizing Static Methods
-
Summary
-
-
Chapter 4 Wait and Notify
-
Back to Work (at the Bank)
-
Wait and Notify
-
wait(), notify(), and notifyAll()
-
wait() and sleep()
-
Thread Interruption
-
Static Methods (Synchronization Details)
-
Summary
-
-
Chapter 5 Useful Examplesof Java Thread Programming
-
Data Structures and Containers
-
Simple Synchronization Examples
-
A Network Server Class
-
The AsyncInputStream Class
-
Using TCPServer with AsyncInputStreams
-
Summary
-
-
Chapter 6 Java Thread Scheduling
-
An Overview of Thread Scheduling
-
When Scheduling Is Important
-
Scheduling with Thread Priorities
-
Popular Scheduling Implementations
-
Native Scheduling Support
-
Other Thread-Scheduling Methods
-
Summary
-
-
Chapter 7 Java Thread Scheduling Examples
-
Thread Pools
-
Round-Robin Scheduling
-
Job Scheduling
-
Summary
-
-
Chapter 8 Advanced Synchronization Topics
-
Synchronization Terms
-
Preventing Deadlock
-
Lock Starvation
-
Thread-Unsafe Classes
-
Summary
-
-
Chapter 9 Parallelizing for Multiprocessor Machines
-
Parallelizing a Single-Threaded Program
-
Inner-Loop Threading
-
Loop Printing
-
Multiprocessor Scaling
-
Summary
-
-
Chapter 10 Thread Groups
-
Thread Group Concepts
-
Creating Thread Groups
-
Thread Group Methods
-
Manipulating Thread Groups
-
Thread Groups, Threads, and Security
-
Summary
-
-
Appendix A Miscellaneous Topics
-
Thread Stack Information
-
General Thread Information
-
Default Exception Handler
-
The ThreadDeath Class
-
The Volatile Keyword
-
-
Appendix B Exceptions and Errors
-
InterruptedException
-
InterruptedIOException
-
NoSuchMethodError
-
RuntimeException
-
-
Colophon
- Title:
- Java Threads, Second Edition
- By:
- Scott Oaks, Henry Wong
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- January 1999
- Pages:
- 344
- Print ISBN:
- 978-1-56592-418-5
- | ISBN 10:
- 1-56592-418-5
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Java Threads, Second Edition, is a scyphomedusa (Atolla vanhoeffeni), a luminescent jellyfish common throughout the world's oceans at depths of 500 to 1,000 meters. They are 3 to 5 centimeters in diameter, with 20 short, stiff tentacles and one long tentacle that trails behind. Although they are eaten in some countries, jellyfish aren't particularly nutritious; less than one percent of a jellyfish body is organic matter, and everything else is water. Madeleine Newell was the production editor for Java Threads, 2nd Edition. Cindy Kogut of Editorial Ink copyedited this edition. Quality control was provided by Jane Ellin, Melanie Wang, and Sheryl Avruch. Seth Maislin wrote the index.
The cover was designed by Emma Colby using a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
The inside layout was designed by Nancy Priest. Text was formatted in FrameMaker 5.5 by Mike Sierra. The heading font is Bodoni BT; the text font is New Baskerville. The illustrations that appeared in the first edition of this book were created in Macromedia Freehand 5.0 by Chris Reilley; for this edition, the illustrations were created and updated by Rob Romano using Macromedia Freehand 8 and Adobe Photoshop 5. This colophon was written by Leanne Soylemez.
