Mutual Exclusion – ME
The "test-and-set" instruction is an atomic operation used in hardware to implement mutual exclusion. It tests the value of a memory location and sets it if it was previously unset. This prevents other processes from entering the critical section while it is locked.
Medium Article: Hardware Synchronization (Test_and_Set() and Compare_and_Swap() Instruction) | Synchronization | Operating Systems
Youtube Video by EZCSE: OS29 - Test and Set Instruction | Hardware Synchronization