lock

An object only one thread can hold at a time (provide mutual exclusion)

It performs two atomic operations: