thread-synchronization

compare and swap vs test and set

Could someone explain to me the working and differences of above operations in multi-threading? ...