Locks are a synchronization mechanism for enforcing limits on access to a resource.

Locks are a synchronization mechanism for enforcing limits on access to a resource.

Further Reading