Go to main content

Multithreaded Programming Guide

Exit Print View

Updated: November 2020

Using This Documentation

  • Overview – Provides information about the POSIX and the Oracle Solaris thread APIs, programming with synchronization objects, and compiling multithreaded programs. 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 Oracle Solaris threads interfaces, most topics assume a POSIX threads interest. Information applying to only Oracle Solaris threads is covered in Programming With Oracle Solaris Threads. The two sets of interfaces share a common implementation and are fully compatible with one another. Calls to POSIX threads interfaces can be freely intermixed with calls to Oracle Solaris threads interfaces.

    POSIX threads information can be found in the Single UNIX Specification Version 3 at http://www.opengroup.org/.

    Note -  This Oracle Solaris release supports systems that use the SPARC and x86 families of processor architectures: UltraSPARC, SPARC64, AMD64, Pentium, and Xeon EM64T. For a list of supported systems see the Oracle Solaris OS: Hardware Compatibility Lists. This document cites any implementation differences between the platform types.

    In this document the term "x86" refers to 64-bit and 32-bit systems manufactured using processors compatible with the AMD64 or Intel Xeon/Pentium product families. For supported systems, see the Oracle Solaris 11 Hardware Compatibility List.

  • Audience – This guide is for application developers who want to create new multithreaded programs or add multithreading to existing programs.

  • Required knowledge

      Developers that use this book should be familiar with and be able to use the following technologies:

    • A UNIX SVR4 system – preferably the current Oracle Solaris release.

    • The C programming language – multithreading interfaces are provided by the standard C library.

    • The principles of concurrent or parallel programming (as opposed to sequential programming).

Product Documentation Library

Documentation and resources for this product and related products are available at http://www.oracle.com/pls/topic/lookup?ctx=E37838-01.


Provide feedback about this documentation at http://www.oracle.com/goto/docfeedback.