Pthreads
Pthreads, or POSIX threads, is a standardized API for writing multi-threaded programs in C, C++, and other languages on POSIX-compliant systems. Defined by POSIX.1c (IEEE Std 1003.1c), it specifies interfaces for creating and managing threads, synchronizing their execution, and handling thread-local data.
Core facilities include thread lifecycle: pthread_create, pthread_exit, pthread_join, pthread_cancel, and attributes via pthread_attr_t controlling detach state,
Additional features include thread-local storage, cancellation handling (pthread_setcancelstate, pthread_cancel, and cleanup handlers via pthread_cleanup_push/pthread_cleanup_pop), and scheduling
Portability and usage: pthreads is supported on most UNIX-like systems, including Linux, BSD variants, and macOS,