answersLogoWhite

0


Best Answer

One major problem in databases is concurrency. Concurrency problems arise when multiple processes try to update or insert data into a database table at the same time. Such concurrent updates can cause data to become corrupt.

Locking is a strategy that is used to prevent such concurrent updates to data.

When a database system modifies data in one of its tables it first acquires a lock. When a table is locked, only the process the acquired the lock is allowed to modify the data in the table. Other processes will have to wait until the lock is released before they can make their changes. Now, this is a simple representation of how locking works. In reality databases can use different locking strategies.

Depending on the database system, locks can be acquired on entire tables (table-level locking) or on individual rows (row-level locking).

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a Lock in DBMS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is locks in DBMS?

a lock is variable associated with a data item that describes the status of the item with respect to possible operation that can be applied to it.


What are highlights of DBMS?

NA_ what are highlights of advanced DBMS what are highlights of advanced DBMS what are highlights of advanced DBMS


What is deadlock in DBMS?

A dead lock is a state of stalmate that may result two or more transaction are each waitting for lock held by the other to be released. in three condition dead lock is appear.... 1.circular wait 2.no premsive 3. matual execlusive.


Is java DBMS?

no, Java is not dbms.. Java is a programming language Dbms is database


Is SQL DBMS or RDBMS?

dbms


What are three types of dbms?

Three types of DBMS (Database Management Systems) include relational DBMS, object-oriented DBMS, and NoSQL DBMS. Relational DBMS organizes data into tables with rows and columns, object-oriented DBMS stores data as objects and classes, and NoSQL DBMS handles unstructured and semi-structured data with flexible schemas.


What are rows in dbms?

In DBMS the data is stored in the form of table . Each row in DBMS is known as tuple.


What are the importance of dbms in industrial environment?

importance of DBMS


What is the difference between DBMS and GIS?

gis and dbms


What is the purpose of dbms?

What is the purpose of dbms?DBMS is a software that organises the creation, storage and maintenance of Databases for end users.


What is the use of dbms?

DataBase Management System (DBMS)is a software package# it allows data to be effectively stored, retrieved and manipulatedand # the data stored in a DBMS packege can be accessed by multiple users and by multiple application programs like (SQL Server, Oracle, Ms-Access) .Types of DBMS# Hierarachical DBMS (HDBMS)# Network DBMS (NDBMS)# Relational DBMS (RDBMS)# Object Oriented DataBase(OODB)# Distributed DBMS (DDBMS)


When was Polyhedra DBMS created?

Polyhedra DBMS was created in 1993.