Pthread
Pthreads, short for POSIX threads, is a portable multi-threading API defined by the POSIX standard (IEEE Std 1003.1c) for C and C++. It provides facilities for creating and terminating threads, synchronizing their access to shared data, and managing thread-specific state. Pthreads is a common foundation for concurrent programming on Unix-like systems and is supported on many other platforms, sometimes via vendor-specific wrappers on Windows.
Key types and objects include pthread_t for thread identifiers, pthread_attr_t for thread attributes, and synchronization primitives
Additional features include thread-local storage via pthread_key_t and associated functions, and one-time initialization through pthread_once. Barriers
Scheduling and real-time control are supported through pthread_setschedparam and related attributes, enabling policies such as SCHED_FIFO,