ALERT

[WEBINAR] See the Whole Story: The Case for a Visualization Platform

Lock

Definition - What does Lock mean?

A lock is a mechanism used to synchronize different processing threads, with set limits to avoid unlimited accessibility of a certain resource within a computing environment. It is a method meant to arrange access by applying simultaneous control policies.

Locks are typically advisory, which means that a thread works collaboratively with other threads to acquire the lock before it is given accessibility to the data it queries. Mandatory locks are also applied by some systems, where an exception occurs as a result of unauthorized access to a source in a locked status.

Also known as locking.

Techopedia explains Lock

A lock has a simple form called a semaphore, where there is no solid difference between a shared, read only mode and an exclusive read/write mode. Shared mode has many forms including exclusive, intend-to-exclude and intend-to-upgrade. These forms are implemented in many computing systems.

There is also another method of classifying locks, which depends on the lock technique used to avoid accessing the unintended thread. A common locking technique blocks the execution of a thread entirely until the thread acquires the lock, while a spinlock tells the thread to freeze access attempts until it acquires the lock.

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.