As already known, you must known your synchronization strategy, ”crossing fingers and wishing nothing bad happens” or ”synchronization problems with primitive fields don’t occur” are simply not correct answers for thread synchronization.
As already known, you must known your synchronization strategy, ”crossing fingers and wishing nothing bad happens” or ”synchronization problems with primitive fields don’t occur” are simply not correct answers for thread synchronization.
Tobe expressed: Thread-safe state handling