Skip to Content
Sun and Oracle
Channel Sun
How to Buy
Log In
English
docs.sun.com Home
>
Solaris 7 Software Developer Collection
> Multithreaded Programming Guide
Multithreaded Programming Guide
Search only this book
Search Help
View this book in:
Other Languages
日本語
Contained Within
Solaris 7 Software Developer Collection
Find More Documentation
Browse Documentation Titles
Browse Product Documentation
Featured Support Resources
Sun Training Courses
BigAdmin System Admininstration Portal
Sun Support Center
Sun Solve
Download this book in PDF (705 KB)
Multithreaded Programming Guide
Book Information
Preface
Ordering Sun Documents
How This Guide Is Organized
What Typographic Changes and Symbols Mean
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
Debugging a Multithreaded Program
8. Tools for Enhancing MT Programs
Scenario: Threading the Mandelbrot Program
Scenario: Checking a Program With LockLint
Scenario: Parallelizing Loops with LoopTool
For More Information
9. 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
10. 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
C. MT Safety Levels: Library Interfaces
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
News Center
About Sun
Contact Sun
Terms of Use
Privacy
Copyright
1994-2009
Sun Microsystems, Inc.