Please enable JavaScript.
Coggle requires JavaScript to display documents.
thread safety - Coggle Diagram
thread safety
when
an object can be accessed by multiple threads
atomicity
race condition
compound action
example
read-modify-write
check-then-act
multiple actions that should be atomic
occurs when correctness of an operation relies on relative timing of operations or interleaving of multiple threads
how to achieve
by locking
using existing atomic class