IT lexicon › Programming › Synchronization

Synchronization

Programming På svenska → Updated: 2026-11-16

Mechanisms and protocols for coordinating multiple threads so they don't interfere with each other or observe inconsistent state.

Synchronization encompasses a wide spectrum of techniques: from lock-based mechanisms (mutexes, read-write locks) to barrier structures to higher-level abstractions (monitors, channels). The fundamental problem is that multiple threads can access the same memory locations simultaneously, leading to data races. Synchronization ensures that critical sections execute atomically or that whole-program invariants are preserved.

Too much synchronization creates performance bottlenecks; too little creates correctness bugs. The right balance is often domain-specific and requires both theoretical understanding and practical experience.

← Back to the lexicon