intermediatetermWeb foundationsWeb foundations / Thread Safety
IntermediateNot yet reviewed

Thread Safety

A programming concept applicable in context of multi-threaded programs where shared data structures are manipulated without race conditions.

Definition

A programming concept applicable in context of multi-threaded programs where shared data structures are manipulated without race conditions.

Use case

Using mutexes or locks so two parallel threads don't write to the same memory location simultaneously.

Related terms

Articles

Thread safety

Wikipedia · Article · link checked 2026-10-16

What goes wrong when parallel code shares data, and the tools that prevent it.

Suggest a change