Assembly


Mar. 28, 2025

Synchronization Mechanism In Assembly Level


Synchronization is required for operation of execution. Two memory accesses form a data race if they are from different threads to the same location, at least one is a write, and they occur one after another.

we focus on the implementation of lock and unlock synchronization operations.

Lock and unlock can be used straightforwardly to create regions where only a single processor can operate, called a mutual exclusion

To implement this two operation, we need hardware primitives that atomically read and write into memory.