Database Systems: Design  Implementation  & Management
Database Systems: Design Implementation & Management
11th Edition
ISBN: 9781305850378
Author: Coronel
Publisher: Cengage
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
What exactly is deadlock? What can be done to avoid it? When it occurs, how can it be resolved?
Briefly describe the strategies for dealing with deadlocks.
It is important to consider the many different approaches that might be used to break a deadlock.
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