Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Pthreads
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==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 five groups: *Thread management – creating, joining threads etc. *[[Mutex]]es *[[Condition variable]]s *[[synchronization (computer science)|Synchronization]] between threads using [[Readers–writer lock|read write locks]] and [[Barrier (computer science)|barriers]] *[[Spinlock]]s<ref>{{cite web |title=pthread.h(0p) — Linux manual page |url=https://www.man7.org/linux/man-pages/man0/pthread.h.0p.html |access-date=18 December 2022}}</ref> The POSIX [[semaphore (programming)|semaphore]] API works with POSIX threads but is not part of the 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>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)