Updated March 26, 2023
Overview
This chapter will cover POSIX Threads (pthreads) and the C11 thread standard. This is primarily because the C11 Thread standard is still not widely supported across all platforms, compilers, and C runtime libraries.
Version Has threads.h?
MSVC – NO
Apple clang – NO
GNU-gcc – YES (as a wrapper around POSIX calls)
Linux clang – YES (as a wrapper around POSIX calls)
This is further complicated because compilers don’t provide the libraries or the C-runtime. Every OS running on various platforms are responsible for providing the libraries necessary to write code for their OS.