
Programming with POSIX threads
by David R. Butenhof · first published 1997
5mentions
4recommended by
5HN commenters
2010–2023first – last mentioned
80% recommend20% neutral
Affiliate links. As an Amazon Associate I earn from qualifying purchases.







Ditto, via David Butenhof's excellent book _Programming with Posix Threads_. I didn't know what a mutex or condition variable was before I read that book.
on “Posix Threads Programming” ↗…with a main focus on shared-memory architectures. Along with the above you also need more detailed language/library specific implementation books; a) C++ Concurrency in Action by Anthony Williams. b) Programming with POSIX Threads by David Butenhof. c) UNIX Systems Programming: Communication, Concurrency and Threads by Kay Robbins and Steve Robbins.
on “Ask HN: Is Knuth's TAOCP worth the time and effort? (2023)” ↗…equation in BASIC and said I should take a look. Stroustrup's _The C++ Programming Language_, twice in a row, because I didn't want to be left out for not having taken Computer Science. Butelhof's _Programming with Posix Threads_, because another book referenced its explanation of why Win32 threading had a bug because it could not, at the time, signal and wait on a mutex in an atomic way. There was something deep to find in those…
on “Which programming book you just couldn’t stop reading from start to end?” ↗Some books will remain relevant. A quick glance at my bookshelf of old but relevant books: K&R The C Programming Language, Programming with POSIX Threads (it's from the 90s but pthreads really hasn't changed), Algorithms, and Expert C Programming.
on “Ask HN: If you were to switch career, what would you do?” ↗Most books like k&r, programming with posix threads, Beej confirm this with C.
on “GOTOphobia Considered Harmful (In C)” ↗