SwapInstruction|Hardware Synchronization Mechanisms
Swap Instruction is also a low level hardware instruction which is atomic or indivisible.Each process keeps its own key variable.In the entry section,key is set to true and swapped with the content of lock.If a false value is received in key process can enter cs.And lock will be true as a result of swap.Since this instruction is atomic,mutual exclusion is guaranteed.Progress is also guaranteed,but no bounded wait.
#swapinstruction
#testandsetinstruction
#hardwaresynchronizationmechanism
#hardwareinstructionsprocesssynchronization
#testandset
#swapandtestandset
#processsynchronization