Simple Locks

A simple lock provides exclusive-write access to a resource such as a data structure or device.

Simple locks are not recursive and have only two states: locked or unlocked.