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:

    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)

    If one reads a newspaper only for information, one does not learn the truth, not even the truth about the paper. The truth is that the newspaper is not a statement of contents but the contents themselves; and more than that, it is an instigator.
    Karl Kraus (1874–1936)

    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)