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:
“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] (17831842)
“How often we must remember the art of the surgeon, which, in replacing the broken bone, contents itself with releasing the parts from false position; they fly into place by the action of the muscles. On this art of nature all our arts rely.”
—Ralph Waldo Emerson (18031882)
“Yet to speak of the whole world as metaphor
Is still to stick to the contents of the mind
And the desire to believe in a metaphor.
It is to stick to the nicer knowledge of
Belief, that what it believes in is not true.”
—Wallace Stevens (18791955)