thread-safe
Locks prevent corruption
Thread-safe describes code or data structures that function correctly when accessed by multiple threads simultaneously.
In concurrent programming, thread-safe operations prevent race conditions and data corruption without requiring external synchronization: Is this library thread-safe?
We need a thread-safe queue for the worker pool.
Aligning timing across systems
- lockMechanism requiring a key
- semaphoreFlag-based signaling system
- atomicOf elemental particles
- critical sectionShared-resource access code
barrier · parallel · concurrent · race condition · deadlock · starvation · preemption · context switch
Flag-based signaling system
- lockMechanism requiring a key
- critical sectionShared-resource access code
- monitorDisplay or supervisor
- barrierObstruction preventing passage
Atoms in a molecule
- immutableIncapable of being changed
- isolationComplete separation from others
- consistencyReliable adherence to standards
- serializableConvertible to stored format
snapshot · versioning · transaction · commit · rollback · checksum · validate · visibility
synchronization
Aligning timing across systems
critical section · barrier · parallel · concurrent · race condition · deadlock · starvation · preemption · context switch · interleaving
semaphore
Flag-based signaling system
- lockMechanism requiring a key
- critical sectionShared-resource access code
- monitorDisplay or supervisor
atomicity
Atoms in a molecule
- immutableIncapable of being changed
- isolationComplete separation from others
- consistencyReliable adherence to standards
serializable · snapshot · versioning · transaction · commit · rollback · checksum · validate · visibility · coherence