Difference between revisions of "POSIX Threads"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{Draft}} == See also == * {{Thread}}")
Tags: Mobile web edit, Mobile edit
 
Tags: Mobile web edit, Mobile edit
 
Line 1: Line 1:
{{Draft}}
+
==Contents==
 +
'''pthreads''' defines a set of [[C (programming language)|C]] programming language [[data type|types]], [[function (computer science)|functions]] and constants. It is implemented with a <code>pthread.h</code> header and a thread [[Library (computing)|library]].
 +
 
 +
There are around 100 threads procedures, all prefixed <code>pthread_</code> and they can be categorized into four groups:
 +
 
 +
*Thread management - creating, joining threads etc.
 +
*[[Mutex]]es
 +
*[[Condition variable]]s
 +
*[[synchronization (computer science)|Synchronization]] between threads using read/write locks and barriers
 +
 
 +
The POSIX [[semaphore (programming)|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 <code>sem_</code> instead of <code>pthread_</code>.
  
  
 
== See also ==
 
== See also ==
 
* {{Thread}}
 
* {{Thread}}
 +
 +
 +
{{CC license}}. Source: wikipedia

Latest revision as of 05:27, 9 March 2020

Contents[edit]

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 threads procedures, all prefixed pthread_ and they can be categorized into four groups:

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_.


See also[edit]


Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.. Source: wikipedia

Advertising: