~/talk

Race Conditions in Details

Talkat GopherCon Europe 2023 · 2023-06-26..06-29· [concurrency, go]
slides:none on file

Explains that Go’s built-in detector runs with -race and can inflate memory by about 5–10x and execution time by ~20x, and still misses races (a slice example only fails on the fifth run). Recommends prevention: use atomic primitives for basic shared counters, wrap shared resources in a mutex or singleflight-backed critical section, or avoid shared memory by using channels; notes critical sections introduce starvation and liveness concerns.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Risk Condition
  3. 1:10Possible Results
  4. 1:40How to Detect
  5. 2:13Drawbacks
  6. 2:54Sample Code
  7. 3:12Prevent
  8. 3:53Critical Section
  9. 5:22Conclusion
~/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.