Menu

#Mutex

5 posts

Feed·
4 of 5 posts
Mutex deadlocks in production: the patterns I found in my codebase and how I diagnosed them
🖼️
0

Mutex deadlocks in production: the patterns I found in my codebase and how I diagnosed them

DEV Community·Juan Torchia·29 days ago
#ilNJmA9p
#pattern#mutex#lock#state#task#await

Three deadlocks in production, all with the same face: the service stopped responding — no error, no panic, no log. What I found while diagnosing them changed how I think about lock design in async Rust.

15s
Read More
A Lock-Free Counter in Go: atomic, sync.Map, or Just a Mutex?
🖼️
0

A Lock-Free Counter in Go: atomic, sync.Map, or Just a Mutex?

DEV Community·Gabriel Anhaia·about 1 month ago
#ZJglIYZe
#when#go#concurrency#atomic#int64#sync

Three Go counters under contention. atomic wins for one hot counter. mutex is fine for batched updates. sync.Map almost never earns its keep.

15s
Read More