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
5. Programming With the Operating Environment
6. Safe and Unsafe Interfaces
7. Compiling and Debugging
8. Programming With Solaris Threads
Comparing APIs for Solaris Threads and POSIX Threads
Major API Differences
Function Comparison Table
Unique Solaris Threads Functions
Suspend Thread Execution
Continue a Suspended Thread
Similar Synchronization Functions--Read-Write Locks
Initialize a Read-Write Lock
Acquire a Read Lock
Try to Acquire a Read Lock
Acquire a Write Lock
Try to Acquire a Write Lock
Unlock a Read-Write Lock
Destroy Read-Write Lock State
Similar Solaris Threads Functions
Create a Thread
Get the Minimal Stack Size
Get the Thread Identifier
Yield Thread Execution
Send a Signal to a Thread
Access the Signal Mask of the Calling Thread
Terminate a Thread
Wait for Thread Termination
Create a Thread-Specific Data Key
Set Thread-Specific Data
Get Thread-Specific Data
Set the Thread Priority
Get the Thread Priority
Similar Synchronization Functions--Mutual Exclusion Locks
Initialize a Mutex
Destroy a Mutex
Acquire a Mutex
Release a Mutex
Try to Acquire a Mutex
Similar Synchronization Functions--Condition Variables
Initialize a Condition Variable
Destroy a Condition Variable
Wait for a Condition
Wait for an Absolute Time
Wait for a Time Interval
Unblock One Thread
Unblock All Threads
Similar Synchronization Functions--Semaphores
Initialize a Semaphore
Increment a Semaphore
Block on a Semaphore Count
Decrement a Semaphore Count
Destroy the Semaphore State
Synchronization Across Process Boundaries
Using LWPs Between Processes
Producer/Consumer Problem Example
Special Issues for fork() and Solaris Threads
9. Programming Guidelines
A. Sample Application--Multithreaded
grep
B. Solaris Threads Example:
barrier.c
Index