POSIX Threads - Contents

Contents

Pthreads defines a set of C programming language types, functions and constants. It is implemented with a pthread.h header and a thread library.

There are around 100 Pthreads procedures, all prefixed "pthread_" and they can be categorized into four groups:

  • Thread management - creating, joining threads etc.
  • Mutexes
  • Condition variables
  • Synchronization between threads using read/write locks and barriers

The POSIX semaphore API works with POSIX threads but is not part of threads standard, having been defined in the POSIX.1b, Real-time extensions (IEEE Std 1003.1b-1993) standard. Consequently the semaphore procedures are prefixed by "sem_" instead of "pthread_".


Read more about this topic:  POSIX Threads

Famous quotes containing the word contents:

    “To be, contents his natural desire;
    He asks no Angel’s wing, no Seraph’s fire;
    But thinks, admitted to that equal sky,
    His faithful dog shall bear him company.”
    —Alexander Pope (1688–1744)

    “The permanence of all books is fixed by no effort friendly or hostile, but by their own specific gravity, or the intrinsic importance of their contents to the constant mind of man.”
    —Ralph Waldo Emerson (1803–1882)

    “Conversation ... is like the table of contents of a dull book.... All the greatest subjects of human thought are proudly displayed in it. Listen to it for three minutes, and you ask yourself which is more striking, the emphasis of the speaker or his shocking ignorance.”
    —Stendhal [Marie Henri Beyle] (1783–1842)