Lock (computer science)
Synchronization mechanism for enforcing limits on access to a resource / From Wikipedia, the free encyclopedia
In computer science, a lock or mutex (from mutual exclusion) is a synchronization primitive that prevents state from being modified or accessed by multiple threads of execution at once. Locks enforce mutual exclusion concurrency control policies, and with a variety of possible methods there exist multiple unique implementations for different applications.