~/talk

Concurrency primitives of Golang: how to use and how not to

Talkat GoLab 2021 · 2021-03-25..10-28· [go, concurrency]
slides:none on file

Compares concrete code patterns using channels, waitGroups, atomic ops and mutexes and shows a broken example that deadlocks when wg.Add() is invoked inside a goroutine plus the corrected version that avoids the race, not theory. Demonstrates a broadcast pattern for multiple listeners (channel vs condition alternatives) and an atomic counter to let N workers signal completion, with microbench snippets and a working refactor that eliminates the race and simplifies coordination.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 10:00Go concurrency primitives
  3. 20:00Common concurrency mistakes
  4. 30:00Best practices summary
  5. 35:00Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.