Hacker News new | ask | show | jobs
by 62951413 667 days ago
Anyone with a Java background will mention JCiP. But there's another book going deeper - "Art of Multiprocessor Programming" (https://www.amazon.com/Art-Multiprocessor-Programming-Mauric...).
1 comments

The book is good but it has a couple important drawbacks:

* while it tells you how to do lock-free programming but doesn't teach you why, nor whether you should it.

* it has a relatively narrow focus on linearizability, but the truth is memory is neither linearizable nor sequentially consistent. These days it is agreed that Lamport's "happens before" relationship and acquire-release are a better way to reason on multithreaded code.