Database Systems: Design, Implementation, & Management
Database Systems: Design, Implementation, & Management
12th Edition
ISBN: 9781305627482
Author: Carlos Coronel, Steven Morris
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 10, Problem 13RQ

Explanation of Solution

Deadlock:

Deadlock is the process in which two or more transactions wait infinitely for the other transaction that release the locked data item. Consider the following example:

Example:

  • Transaction “T1” wants to access data items “X” and “Y” and transaction “T2” wants to access data items “Y” and “X”.
  • If the transaction “T1” locks the data item “Y”, the transaction “T2” cannot starts its process.
  • If the transaction “T2” locks the data item “X”, the transaction “T1” cannot continue its process.

The transaction waits for each other to unlock the data item. It is otherwise called as “deadly embrace”.

To avoid the deadlock in transactions, use the strategies of deadlock avoidance, deadlock prevention and deadlock detection.

Deadlock avoidance:

Deadlock avoidance is the process that obtains all the locks before the transaction executed. This process used to increase the response time of the transaction...

Blurred answer
Students have asked these similar questions
Discuss each of the three different approaches that may be used to end a deadlock.
In a few phrases, describe the approaches for dealing with deadlocks.
What are the 4 requirements for a deadlock to occur? Please explain why each one needs to be present for a deadlock, and show why the deadlock would not occur if any are missing?
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education