~/talk

The monsters inside the sync.Locker

Talkat dotGo 2019 · on Monday, 2019-03-25· [go]
slides:none on file

Explains that a Go mutex implements both read and write memory barriers by using atomic compare-and-swap and atomic add in the hot path, so locking guarantees visibility across caches; it spins with a spin-and-retry loop and falls back into starvation mode when contention persists, all implemented lock‑free and efficiently in the runtime. Recommends splitting state, keeping critical sections tiny, preferring mutexes over ad hoc atomics because atomics are easy to get wrong, and notes the race detector works with proper locks.

AI-written summary · about

  1. 0:00Start
  2. 0:14What are Channels?
  3. 0:29Mutexes do two things
  4. 1:02A trip down memory lane
  5. 2:36Mutexes fast path
  6. 2:50Mutexes handle starvation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.