Cover of C Concurrency in Action

C Concurrency in Action

by Anthony Williams · first published 2012

24mentions
14recommended by
22HN commenters
2012–2025first – last mentioned

64% recommend36% neutral

Why HN recommends it

Practical guide to the C++11 threading library, covering lock-based and lock-free designs, memory orderings and safe reclamation. Suits C++ programmers who want to understand concurrency.

Summarised by Claude from recommending comments

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

30 2007: 0 mentions2008: 0 mentions2009: 0 mentions2010: 0 mentions2011: 0 mentions2012: 2 mentions2013: 0 mentions2014: 3 mentions2015: 1 mention2016: 2 mentions2017: 1 mention2018: 0 mentions2019: 1 mention2020: 2 mentions2021: 2 mentions2022: 2 mentions2023: 3 mentions2024: 2 mentions2025: 2 mentions2026: 0 mentions200720172026

What Hacker News says

  • RcouF1uZ4gsC · Jun 14, 2022 · Recommends

    …queue, and the submissions are going to the same queue. There are not multiple queues with work-stealing which is I think a minimum for a production level version of something like this. EDIT: IIRC C++ Concurrency in Action by Anthony Williams has a nice discussion of the issues of building a C++ thread pool using the C++ standard library. It does address things like contention and work-stealing.

    on “A C++17 thread pool for high-performance scientific computing” ↗
  • matt_d · Apr 21, 2014 · Recommends

    …with "C++ Primer" by Lippman/Lajoie/Moo since it smoothly integrates modern C++11 throughout the entire text (instead of sticking it into a separate section, as some of the other books do). After that, "C++ Concurrency in Action: Practical Multithreading" by Anthony Williams: http://www.manning.com/williams/ ...and then the rest of the books from the isocpp list (e.g., Josuttis). 1. Libraries: The rich ecosystem of available…

    on “The Convergence of Modern C++ on the Lisp Programming Style” ↗
  • nisa · Feb 23, 2014 · Recommends

    I've read C++ Concurrency in Action and found it very helpful in understanding these concepts: http://www.manning.com/williams/

    on “The C++ and programming books I recommend” ↗
  • eiji · May 16, 2014 · Recommends

    C++ Concurrency in Action, Practical Multithreading, by Anthony Williams http://www.manning.com/williams/

    on “Ask HN: What's the best programming book you've read recently?” ↗
  • rramadass · Jul 4, 2019 · Recommends

    …ambivalent on "Modern C++"(they have made it more complicated and invented a new language) and still ramping up on its features and nuances. Haven't really found any insightful book so far (except for "C++ Concurrency in Action" by Anthony Williams which of course is specialized). However i recently found "Modern C++ Programming Cookbook" by Marius Bancila which seems like a very nice catalog of all the C++11/14/17 features.…

    on “D as a C Replacement” ↗
  • rramadass · Nov 29, 2023 · Recommends

    …Maurice Herlihy et al. - Well known classic though 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)” ↗
  • npalli · Aug 13, 2024 · Recommends

    "C++ Concurrency in Action" by Anthony Williams is solid. Make sure you get the second edition, it is updated for C++17. https://www.amazon.com/C-Concurrency-Action-Anthony-Williams...

    on “Rust Atomics and Locks (2023)” ↗
  • senderista · Aug 19, 2025 · Recommends

    Maybe you'd like Anthony Williams's _C++ Concurrency in Action_, which doesn't cover futexes (or how to write your own synchronization primitives in general), but does cover real-world details like memory orderings and SMR for lock-free data structures. If that's…

    on “Without the futex, it's futile” ↗
  • jmat · Dec 3, 2012 · Recommends

    I'm reading and like 'The C++ Standard Library: A Tutorial and Reference (2nd Edition)' and 'C++ Concurrency in Action: Practical Multithreading'. Both cover C++11. So far the concurrency book's examples compile in VS2012.

    on “Why C++ is back” ↗
  • Davidbrcz · Jul 20, 2016 · Recommends

    …best introduction book about C++ I know) The textbook and more specific books : - The C++ Programming Language (the ultimate C++ textbook) - C++ Template the complete Guide (focused on templates) - C++ Concurrency in Action (focused on threading) In a second time, have also a look at some libraries like boost (many specific purpose components), Qt (huge framework for making GUI), Poco. - Website https://isocpp.org/ (the…

    on “Ask HN: What's the best way to start with C++?” ↗
  • gusmd · Dec 8, 2017 · Recommends

    Last year I went through Anthony William's C++ Concurrency in Action to better understand the "new" threading library. No complaints. Actually, I've been using it in several components that are "pure C++" (i.e., no Qt, only STL). My point of view is that, where I'm using…

    on “Qt 5.10 released” ↗
  • percentcer · Apr 6, 2020 · Recommends

    I found C++ Concurrency in Action to be pretty helpful. Also if you're able to run TSan it'll really shine a light on your code and will help you sleep more easily. (https://github.com/google/sanitizers/wiki/ThreadSanitizerCpp..., currently…

    on “Libcsp: a fast C concurrency library influenced by the CSP model” ↗
  • lenkite · Sep 7, 2020 · Recommends

    C++ STL Cookbook, C++ 17 in Detail, C++ Notes for Professionals (free very detailed cheatsheet) https://books.goalkicker.com/CPlusPlusBook/, C++ Concurrency in Action, Second Edition, Functional Programming in C++

    on “C++20 has been approved” ↗
  • brtv · Jun 26, 2021 · Recommends

    I quite liked the book "C++ Concurrency in Action: Practical Multithreading". It has been a few years since I've read it, but it gave me a better understanding of both C++ and concurrency in general.

    on “Correctly implementing a spinlock in Modern C++” ↗
  • Jtsummers · Aug 19, 2025 · Recommends

    …going through lock implementations and such it actually starts solving problems using both lock-based and lock-free designs. Follow it up with something appropriate to the language you're using, like C++ Concurrency in Action for C++ (much of it transfers to other languages).

    on “Without the futex, it's futile” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help