Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

Chapter 14 – Threads

Posted on August 11, 2019March 26, 2023 By William Jojo
C book

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.

Post navigation

❮ Previous Post: Chapter 13 – Trees
Next Post: Appendix A – C Header Files ❯

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.