![]() |
![]() |
| |||||||||||||||
Multithreaded Programming GuidePrefaceThe Multithreaded Programming Guide describes the multithreaded programming interfaces for POSIX and Solaris threads in the Solaris Operating Environment. This guide shows application programmers how to create new multithreaded programs and how to add multithreading to existing programs. Although this guide covers both the POSIX and Solaris threads implementations, most topics assume a POSIX threads interest. Information applying to only Solaris threads is covered in a special chapter. To understand this guide, a reader must be familiar with
How This Guide Is OrganizedChapter 1 gives a structural overview of threads implementation in this release. Chapter 2 discusses the general POSIX threads library routines, emphasizing creating a thread with default attributes. Chapter 3 covers creating a thread with nondefault attributes. Chapter 4 covers the threads library synchronization routines. Chapter 5 discusses changes to the operating environment to support multithreading. Chapter 6 covers multithreading safety issues. Chapter 7 covers the basics of compiling and debugging multithreaded applications. Chapter 8 covers the Solaris threads (as opposed to POSIX threads) interfaces. Chapter 9 discusses issues that affect programmers writing multithreaded applications. Appendix A shows how code can be designed for POSIX threads. Appendix B shows an example of building a barrier in Solaris threads. Accessing Sun Documentation OnlineThe docs.sun.comSM Web site enables you to access Sun technical documentation online. You can browse the docs.sun.com archive or search for a specific book title or subject. The URL is http://docs.sun.com. What Typographic Conventions MeanThe following table describes the typographic changes used in this book. Table P-1 Typographic Conventions
| |||||||||||||||
| |||||||||||||||