Skip Navigation Links | |
Exit Print View | |
Multithreaded Programming Guide Oracle Solaris 11.1 Information Library |
1. Covering Multithreading Basics
4. Programming with Synchronization Objects
5. Programming With the Oracle Solaris Software
6. Programming With Oracle Solaris Threads
Setting Up the Oracle Solaris Environment for Developing Multithreaded Applications
Compiling a Multithreaded Application
Choosing Oracle Solaris or POSIX Threads
Including <thread.h> or <pthread.h>
Compiling and Linking a Multithreaded Program
Compiling and Linking in the POSIX Threads Environment
Compiling and Linking in the Oracle Solaris Threads Environment
Compiling and Linking in a Mixed Threads Environment
Linking With -lrt for POSIX Semaphores
Debugging a Multithreaded Program
Common Oversights in Multithreaded Programs
Tracing and Debugging with DTrace
Profiling with Performance Analyzer
Detecting Data Races and Deadlocks Using Thread Analyzer
Tracing and Debugging With the TNF Utilities
The Solaris 8 release introduced an alternate threads library implementation that is located in the directories /usr/lib/lwp (32-bit) and /usr/lib/lwp/64 (64-bit). In the Solaris 9 release, this implementation became the standard threads implementation found in /usr/lib and /usr/lib/64. Effective with the Oracle Solaris 10 release, all threads functionality has been moved into libc and no separate threads library is required. The /usr/lib/lwp directories are maintained for compatibility of Solaris 8 applications.