Rendered at 21:05:19 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
AbbeFaria 15 hours ago [-]
As a measly backend programmer, I only have a good mental model of a “lock”, think a sync.Mutex in Golang.
But I wanted to go deeper into the rabbit hole and understand concepts like memory ordering and how atomic operations are actually implemented using the abstractions hw provides.
Any book recommendations or exercises I could do to learn more about this. Thanks.
afdbcreid 7 hours ago [-]
Rust Atomics and Locks by Mara Bors (https://mara.nl/atomics/) is a very good book and available for free online. It does require knowing Rust at least in a basic level, but it explains things very well.
matt_d 14 hours ago [-]
I'd recommend "A Primer on Memory Consistency and Cache Coherence, Second Edition"
- Synthesis Lectures on Computer Architecture 15:1 (2020)
- Vijay Nagarajan, Daniel J. Sorin, Mark D. Hill, David A. Wood
- (open access, freely available): https://doi.org/10.2200/S00962ED2V01Y201910CAC049
But I wanted to go deeper into the rabbit hole and understand concepts like memory ordering and how atomic operations are actually implemented using the abstractions hw provides.
Any book recommendations or exercises I could do to learn more about this. Thanks.
For more see: https://github.com/MattPD/cpplinks/blob/master/atomics.lockf...