www.sun.com
docs.sun.com
|
Multithreaded Programming Guide
Copyright
Preface
1. Covering Multithreading Basics
2. Basic Threads Programming
3. Thread Create Attributes
4. Programming with Synchronization Objects
Mutual Exclusion Lock Attributes
Initialize a Mutex Attribute Object
Destroy a Mutex Attribute Object
Set the Scope of a Mutex
Get the Scope of a Mutex
Set the Mutex Type Attribute
Get the Mutex Type Attribute
Set Mutex Attribute's Protocol
Get Mutex Attribute's Protocol
Set Mutex Attribute's Priority Ceiling
Get Mutex Attribute's Priority Ceiling
Set Mutex's Priority Ceiling
Get Mutex's Priority Ceiling
Set Mutex's Robust Attribute
Get Mutex's Robust Attribute
Using Mutual Exclusion Locks
Initialize a Mutex
Make Mutex Consistent
Lock a Mutex
Unlock a Mutex
Lock With a Nonblocking Mutex
Destroy a Mutex
Mutex Lock Code Examples
Condition Variable Attributes
Initialize a Condition Variable Attribute
Remove a Condition Variable Attribute
Set the Scope of a Condition Variable
Get the Scope of a Condition Variable
Using Condition Variables
Initialize a Condition Variable
Block on a Condition Variable
Unblock One Thread
Block Until a Specified Time
Block For a Specified Interval
Unblock All Threads
Destroy Condition Variable State
The Lost Wake-Up Problem
The Producer/Consumer Problem
Semaphores
Counting Semaphores
Initialize a Semaphore
Named Semaphores
Increment a Semaphore
Block on a Semaphore Count
Decrement a Semaphore Count
Destroy the Semaphore State
The Producer/Consumer Problem, Using Semaphores
Read-Write Lock Attributes
Initialize a Read-Write Lock Attribute
Destroy a Read-Write Lock Attribute
Set a Read-Write Lock Attribute
Get a Read-Write Lock Attribute
Using Read-Write Locks
Initialize a Read-Write Lock
Read Lock on Read-Write Lock
Read Lock With a Nonblocking Read-Write Lock
Write Lock on Read-Write Lock
Write Lock With a Nonblocking Read-Write Lock
Unlock a Read-Write Lock
Destroy a Read-Write Lock
Synchronization Across Process Boundaries
Producer/Consumer Problem Example
Interprocess Locking Without the Threads Library
Comparing Primitives
5. Programming With the Operating Environment
6. Safe and Unsafe Interfaces
7. Compiling and Debugging
8. Programming With Solaris Threads
9. Programming Guidelines
A. Sample Application--Multithreaded
grep
B. Solaris Threads Example:
barrier.c
Index