---
tags: lock, talk-notes
---
# [Let's Talk Locks!] Table of contents
This series is my notes for the talk https://www.infoq.com/presentations/go-locks/.
## Summary
The talk talks about how locks are implemented in modern languages, taking Go as an example, since it has good concurrency design - its goroutines, which is user-space threads.
## Hardware lock primitives
On Intel machines, `CMPXCHG` (compare-and-swap) used together with the `LOCK` prefix can be used to implement simple spin loc