A read-modify-write (RMW)Instruction on a piece of data, that appears to complete instantaneously and without interruption, even when multiple Thread or processors attempt to access the same piece of data simultaneously
This ensures that a set of read-modify-write (RMW) operation’s outcome on a piece of data is always consistent and predictable
With read-modify-write (RMW) united in one pieces, there is no way for one Thread to read, another Thread to write, and first Thread from overwriting the changes made by the second Thread
Atomic instructions are also used to acquire and release Spinlock, which are locks that prevent multiple threads from accessing a shared resource simultaneously.