Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
   
 

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
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
  8.  Programming With Solaris Threads
  9.  Programming Guidelines
  A.  Sample Application--Multithreaded grep
  B.  Solaris Threads Example: barrier.c
  Index