Skip to content
UPEEC

Thread Safety

Code is thread-safe if concurrent use cannot cause data races or broken invariants.

Intermediate
Comments 0

Prefer immutable data, message passing and confining data to one thread. ThreadSanitizer finds races.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.