Chapter 3: The Threading Package
3.1 Introducing the Threading Package
3.1.1 Interpackage Dependencies
3.1.2 Including the Header Files
3.2 Definitions
3.2.1 Threads and Concurrency
3.2.2 Threads and Memory
3.2.3 Thread Safety
3.3 Threading Class Hierarchies
3.3.1 The Runnable Class Hierarchy
3.3.2 The Attribute Class Hierarchy
3.3.3 The IOU Class in the Threading Package
3.4 Using Threads
3.4.1 Creating Threads
3.4.2 Introducing the Runnable
3.4.3 Runnable Make Functions
3.4.4 Explicitly Constructing Functors and Runnables
3.5 The Runnable Object Classes
3.5.1 Defining a Runnable's Task
3.5.2 Creating Functor-based Runnables
3.5.3 Runnable State
3.5.4 Runnable Operations
3.5.5 Starting a Runnable
3.5.6 Joining a Runnable
3.5.7 Monitoring the Completion State of a Runnable
3.5.8 Catching and Rethrowing Exceptions
3.5.9 Interrupting a Runnable
3.5.10 Canceling a Runnable
3.5.11 Sleeping
3.5.12 Yielding Execution
3.5.13 Suspending and Resuming Execution
3.5.14 Terminating Execution
3.5.15 Monitoring the Execution State of a Runnable
3.5.16 Execution Nesting
3.5.17 Thread Identification
3.6 The Server Classes
3.6.1 Constructing a Server
3.6.2 Starting a Server
3.6.3 Enqueuing Runnables on a Server
3.6.4 Stopping a Server
3.6.5 Interrupting a Server
3.6.6 Canceling a Server
3.6.7 Using Server Pool Thread Attributes
3.6.8 Resizing a Server Pool
3.7 The Thread Pool Class
3.7.1 Constructing a Thread Pool
3.7.2 Starting a Thread Pool
3.7.3 Enqueuing Work on a Thread Pool
3.7.4 Stopping a Thread Pool
3.7.5 Considerations
3.8 Using Threads To Build Active Objects
3.8.1 Using Runnables
3.8.2 Using Runnable Servers
3.9 Thread Attributes
3.9.1 Thread Attribute Families
3.9.2 Thread Attribute Portability
3.9.3 Testing For Support
3.9.4 Querying Attribute Values
3.9.5 Setting Attribute Values
3.9.6 Default Attribute Values
3.9.7 Restoring Default Attribute Values
3.9.8 Determining the Legal Range For An Attribute
3.9.9 Scheduling Attributes
3.9.10 Stack Attributes
3.9.11 Initializing Threaded Runnables
3.9.12 Querying Threaded Runnables For Thread Creation Attributes
©Copyright 2000, Rogue Wave Software, Inc.
Contact
Rogue Wave about documentation or support issues.