Menu

#Mutex

7 posts

Feed·
6 of 7 posts
0Read More

Making A Mutex from Scratch in Rust to Understand Thread Safety

Reddit r/programming·u/PastEar9661·25 days ago
#QIXG03DJ
#mutex#performance#scratch#rust#article

Hey r/programming ! I wrote a comprehensive article on constructing a mutex from scratch. It covers: - Data races: what happens at the register level, and how parallel access can go wrong - Atomics & Memory Ordering: why atomics work and what each memory…

15s
Mutex deadlocks in production: the patterns I found in my codebase and how I diagnosed them
🖼️
0Read More

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

DEV Community·Juan Torchia·6 months ago
#ilNJmA9p
#pattern#mutex#lock#state#task

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
A Lock-Free Counter in Go: atomic, sync.Map, or Just a Mutex?
🖼️
0Read More

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

DEV Community·Gabriel Anhaia·7 months ago
#ZJglIYZe
#when#go#concurrency#atomic#int64

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