Skip to Content
Sun and Oracle
Channel Sun
How to Buy
Log In
Français
Page d’accueil docs.sun.com
>
Solaris 9 9/04 Software Developer Collection
> Multithreaded Programming Guide
Multithreaded Programming Guide
Rechercher uniquement dans ce livre
Aide pour la recherche
Afficher ce livre dans:
Autres langues
日本語
Contenues dans
Solaris 9 9/04 Software Developer Collection
Solaris 9 4/04 Software Developer Collection
Solaris 9 12/03 Software Developer Collection
Solaris 9 8/03 Software Developer Collection
Solaris 9 4/03 Software Developer Collection
Solaris 9 12/02 Software Developer Collection
Solaris 9 Software Developer Collection
Solaris 9 Software Developer Collection
Trouver plus de documentation
Explorer la documentation par titre
Explorer la documentation par produit
Ressources d'assistance comprises
Formations Sun
Portail d'administration système BigAdmin
Centre de support Sun
Sun Solve
Télécharger cet ouvrage au format PDF (918 Ko)
Multithreaded Programming Guide
Index
Numbers and Symbols
A
B
C
D
E
F
G
H
I
J
K
L
M
N
P
R
S
T
U
V
W
X
Book Information
Preface
How This Guide Is Organized
Accessing Sun Documentation Online
What Typographic Conventions Mean
Shell Prompts in Command Examples
1. Covering Multithreading Basics
Defining Multithreading Terms
Meeting Multithreading Standards
Benefiting From Multithreading
Understanding Basic Multithreading Concepts
Using the 64–bit Architecture
2. Basic Threads Programming
The Threads Library
3. Thread Create Attributes
Attributes
4. Programming with Synchronization Objects
Mutual Exclusion Lock Attributes
Using Mutual Exclusion Locks
Condition Variable Attributes
Using Condition Variables
Semaphores
Read-Write Lock Attributes
Using Read-Write Locks
Synchronization Across Process Boundaries
Interprocess Locking Without the Threads Library
Comparing Primitives
5. Programming With the Operating Environment
Process Creation—Forking Issues
Process Creation—exec(2) and exit(2) Issues
Timers, Alarms, and Profiling
Nonlocal Goto—setjmp(3C) and longjmp(3C)
Resource Limits
LWPs and Scheduling Classes
Extending Traditional Signals
I/O Issues
6. Safe and Unsafe Interfaces
Thread Safety
MT Interface Safety Levels
Async-Signal-Safe Functions
MT Safety Levels for Libraries
7. Compiling and Debugging
Compiling a Multithreaded Application
The Alternate libthread
Debugging a Multithreaded Program
8. Programming With Solaris Threads
Comparing APIs for Solaris Threads and POSIX Threads
Unique Solaris Threads Functions
Similar Synchronization Functions—Read-Write Locks
Similar Solaris Threads Functions
Similar Synchronization Functions—Mutual Exclusion Locks
Similar Synchronization Functions—Condition Variables
Similar Synchronization Functions—Semaphores
Synchronization Across Process Boundaries
Special Issues for fork() and Solaris Threads
9. Programming Guidelines
Rethinking Global Variables
Providing for Static Local Variables
Synchronizing Threads
Avoiding Deadlock
Following Some Basic Guidelines
Creating and Using Threads
Working With Multiprocessors
Summary
A. Sample Application—Multithreaded grep
Description of tgrep
Getting Online Source Code
B. Solaris Threads Example: barrier.c
News Center
About Sun
Contact Sun
Terms of Use
Privacy
Copyright
1994-2009
Sun Microsystems, Inc.