| Posix Threads |
Shopping Posix |
Website Links For Posix |
Information AboutPosix Threads |
| CATEGORIES ABOUT POSIX THREADS | |
| posix standards | |
| parallel computing | |
|
Libraries implementing the POSIX Threads standard are often named Pthreads. Pthreads are most commonly used on Unix-like POSIX systems such as Linux and Solaris , but Microsoft Windows implementations also exist. For example, the pthreads-w32 is available and supports a subset of the Pthread API {Link without Title} . (Note: in text, Pthreads is written with an upper-case P.) CONTENTS Pthreads defines a set of C programming language types and procedure calls. It is implemented with a pthread.h header and a thread library. Data types
Thread manipulation functions: arguments omitted for brevity.
Synchronization functions: for mutexes and condition variables
EXAMPLE An example of using Pthreads in C:
This program creates a new thread that prints lines containing 'b', while the main thread prints lines containing 'a'. The output is interleaved between 'a' and 'b' as a result of execution switching between the two threads. More tutorials can be found below in the links section. REFERENCES
SEE ALSO EXTERNAL LINKS
|
|
|