[RK_2014_1026][C++_03]POSIX Threads

1.POSIX Threads

POSIX Threads, usually referred to as Pthreads, is a POSIX standard for threads. The standard, POSIX.1c, Threads extensions (IEEE Std 1003.1c-1995), defines an API for creating and manipulating threads. 
Implementations of the API are available on many Unix
-like POSIX-conformant operating systems such as FreeBSD, NetBSD, OpenBSD, GNU/Linux, Mac OS X and Solaris. DR-DOS and Microsoft Windows implementations also exist: within the SFU/SUA subsystem which provides a native implementation of a number of POSIX APIs, and also within third-party packages such as pthreads-w32, which implements pthreads on top of existing Windows API.
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: 01.Thread management - creating, joining threads etc. 02.Mutexes 03.Condition variables 04.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_".

 

2.本文网址[tom-and-jerry发布于2014-10-26 20:46]

http://www.cnblogs.com/tom-and-jerry/p/4052709.html 

你可能感兴趣的:(thread)