3. Using the C++ Compiler Options
6. Creating and Using Templates
9. Improving Program Performance
10.1 Building Multithreaded Programs
10.1.1 Indicating Multithreaded Compilation
10.1.2 Using C++ Support Libraries With Threads and Signals
10.2 Using Exceptions in a Multithreaded Program
10.3 Sharing C++ Standard Library Objects Between Threads
10.4 Using Classic iostreams in a Multithreading Environment
10.4.1 Organization of the MT-Safe iostream Library
10.4.1.1 Public Conversion Routines
10.4.1.2 Compiling and Linking With the MT-Safe libC Library
10.4.1.3 MT-Safe iostream Restrictions
10.4.1.4 Reducing Performance Overhead of MT-Safe Classes
10.4.2 Interface Changes to the iostream Library
10.4.2.2 The New Class Hierarchy
10.5 Memory Barrier Intrinsics
12. Using The C++ Standard Library
13. Using the Classic iostream Library
This chapter explains how to build multithreaded programs. It also discusses the use of exceptions, explains how to share C++ Standard Library objects across threads, and describes how to use classic (old) iostreams in a multithreading environment.
For more information about multithreading, see the Multithreaded Programming Guide.
See also the OpenMP API User's Guide for information on using OpenMP shared memory paralellization directives to create multithreaded programs.