Java Threads, Second Edition
By
Scott Oaks,
Henry Wong
January 1999
Pages: 336
| Table of Contents
| Index
| Sample Chapter
| Colophon
Table of Contents
-
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
Return to Java Threads