Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Multithreaded Programming Guide
Copyright
Expand TOC  Preface
Expand TOC  1.  Covering Multithreading Basics
Expand TOC  2.  Basic Threads Programming
Expand TOC  3.  Thread Create Attributes
Collapse TOC  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
Expand TOC  5.   Programming With the Operating Environment
Expand TOC  6.  Safe and Unsafe Interfaces
Expand TOC  7.  Compiling and Debugging
Expand TOC  8.  Programming With Solaris Threads
Expand TOC  9.  Programming Guidelines
Expand TOC  A.   Sample Application--Multithreaded grep
Expand TOC  B.   Solaris Threads Example: barrier.c
Expand TOC  Index