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
Expand TOC  4.  Programming with Synchronization Objects
Expand TOC  5.   Programming With the Operating Environment
Expand TOC  6.  Safe and Unsafe Interfaces
Collapse TOC  7.  Compiling and Debugging
Compiling a Multithreaded Application
Preparing for Compilation
Choosing Solaris or POSIX Semantics
Including <thread.h> or <pthread.h>
Defining _REENTRANT or _POSIX_C_SOURCE
Linking With libthread or libpthread
Linking With -lrt for POSIX Semaphores
Link Old With New
The Alternate libthread
Debugging a Multithreaded Program
Common Oversights
Tracing and Debugging With the TNF Utilities
Using truss(1)
Using mdb(1)
Using dbx
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