Books & Videos

Table of Contents

  1. Chapter 1 Introduction to Threading

    1. Java Terms

    2. Thread Overview

    3. Why Threads?

    4. Summary

  2. Chapter 2 The Java ThreadingAPI

    1. Threading Using the Thread Class

    2. Threading Using the Runnable Interface

    3. The Life Cycle of a Thread

    4. Thread Naming

    5. Thread Access

    6. More on Starting, Stopping, and Joining

    7. Summary

  3. Chapter 3 Synchronization Techniques

    1. A Banking Example

    2. Reading Data Asynchronously

    3. A Class to Perform Synchronization

    4. The Synchronized Block

    5. Nested Locks

    6. Deadlock

    7. Return to the Banking Example

    8. Synchronizing Static Methods

    9. Summary

  4. Chapter 4 Wait and Notify

    1. Back to Work (at the Bank)

    2. Wait and Notify

    3. wait(), notify(), and notifyAll()

    4. wait() and sleep()

    5. Thread Interruption

    6. Static Methods (Synchronization Details)

    7. Summary

  5. Chapter 5 Useful Examplesof Java Thread Programming

    1. Data Structures and Containers

    2. Simple Synchronization Examples

    3. A Network Server Class

    4. The AsyncInputStream Class

    5. Using TCPServer with AsyncInputStreams

    6. Summary

  6. Chapter 6 Java Thread Scheduling

    1. An Overview of Thread Scheduling

    2. When Scheduling Is Important

    3. Scheduling with Thread Priorities

    4. Popular Scheduling Implementations

    5. Native Scheduling Support

    6. Other Thread-Scheduling Methods

    7. Summary

  7. Chapter 7 Java Thread Scheduling Examples

    1. Thread Pools

    2. Round-Robin Scheduling

    3. Job Scheduling

    4. Summary

  8. Chapter 8 Advanced Synchronization Topics

    1. Synchronization Terms

    2. Preventing Deadlock

    3. Lock Starvation

    4. Thread-Unsafe Classes

    5. Summary

  9. Chapter 9 Parallelizing for Multiprocessor Machines

    1. Parallelizing a Single-Threaded Program

    2. Inner-Loop Threading

    3. Loop Printing

    4. Multiprocessor Scaling

    5. Summary

  10. Chapter 10 Thread Groups

    1. Thread Group Concepts

    2. Creating Thread Groups

    3. Thread Group Methods

    4. Manipulating Thread Groups

    5. Thread Groups, Threads, and Security

    6. Summary

  1. Appendix Miscellaneous Topics

    1. Thread Stack Information

    2. General Thread Information

    3. Default Exception Handler

    4. The ThreadDeath Class

    5. The Volatile Keyword

  2. Appendix Exceptions and Errors

    1. InterruptedException

    2. InterruptedIOException

    3. NoSuchMethodError

    4. RuntimeException

  3. Colophon