Hi Guest

HomePage

1 1

To improves our performance please Like Share Subscribe(Will boost us)

Difference Between Update Lock and Exclusive Lock
Question Posted on 13 Jul 2011

Home >> DataBase >> sql questions >> Difference Between Update Lock and Exclusive Lock

When Exclusive Lock is on any processes no other lock can be placed on that row or table. Every other process have to wait till Exclusive Lock is complete its tasks.

When two transactions doing shared mode locks on same (row or table) and then trying to update data concurrently when first transaction attempts the lock conversion to an exclusive lock. The shared mode to exclusive lock conversion must wait because the exclusive lock for first transaction is not compatible with the shared mode lock of the other transaction a lock wait occurs. The second transaction attempts to acquire an exclusive lock for its update. Now both transactions are converting to exclusive locks and they are each waiting for the other transaction to release its shared mode lock then deadlock occurs.To avoid this deadlock problem update locks are used. Only one transaction can obtain an update lock to a (row or table) at a time. If a transaction trying to modifies a row or table the update lock is converted to an exclusive lock else the lock is converted to a shared mode lock.
0
0




Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions
Define N in nvarchar and in nchar?
difference between drop and truncate command
difference between procedure and function
different types of databases in sql
Difference Between Update Lock and Exclusive Lock






Most Visited Questions
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |
     
 
Privacy policy | Terms and Conditions | Blog


If the copyright of any questions or content or syntax belong to you email us we will remove that(info@crackyourinterview.com or crackyourinterview2018@gmail.com)
 

1
Home About Us GroupChat
 
Sitemap Feedback Contact us