Deadlock Detection in Distributed Database
Deadlock Detection in Distributed Database
Deadlock Detection in Distributed Database
Web Site: www.ijettcs.org Email: [email protected], [email protected] Volume 2, Issue 2, March April 2013 ISSN 2278-6856
Taxonomy of database:
1. INTRODUCTION
Deadlock handling is an important component of transaction management in a database system. In this paper an algorithm for detecting and resolving deadlock in distributed database is discussed which can improve in development of transaction Management. In distributed database with replication same data may reside in several locations. A transaction initiated at one site can request data for which it is not the owner. Deadlock occurs in database system that permits concurrent execution of transaction using locking protocol. Deadlock detection is very difficult in distributed database system because no controller has complete and current information about the system and data dependencies. This new algorithm is based on creating a Linear Transaction Structure (LTS), Distributed Transaction Structure (DTS) finding local and global cycle, deciding priority ID of the transaction and aborting the selected victim. It also ensures that it will not detect false deadlock. In Section 2 a survey of existing algorithms is discussed and in section 3 a new technique is discussed and in section 4 architectural model is presented and in section 5 experimental setup and conclusions in section 6.
Figure 2.Classification of Locking Protocols There are various algorithms existing for deadlock detection in distributed database. A survey of such algorithm is done in this section. The existing deadlock detection algorithm are divided into two category 1. Pass Information about transaction request to maintain a global wait for graph. 2. Simpler messages are sent among the transactions. No global wait for graph is explicitly constructed. Hos Algorithm [9] In this Algorithm each site maintains a status table for all the processes that are initiated at the site. For each process, the tables keep track of the resources the process Page 95
2. LITERATURE SURVEY
The taxonomy of databases and locking methods is presented below. Volume 2, Issue 2 March April 2013
DTS (for deadlock detection) Requestor Holder (trans.id) (trans.id) 1 3(for resource 3) 3 5(for resource 5) 5 1(for resource 1). Circular wait condition Deadlock Detected between transactions 1, 3 and 5. Victim selected as T5 based on Timestamp of transaction T5:aborted.all other executed successfully. 2. Alternatively, The transactions are not user defined in files rather they are generated randomly by simulation methods in which 80% transaction are read only as in real case and the system is tested. Figure 3: System Architecture diagram
REFERENCES
[1]B. M. M. Alom, F. Henskens, and M. Hannaford, "Deadlock Detection Views of Distributed Database," in International conference on Information Technology & New Generation (ITNG-2009) Las Vegas, USA: IEEE Computer Society, 2009. [2] A. K. Elmagarmid, "A Survey Of Distributed Deadlock Detection Algorithms," SIGMODRECORD, vol. 15: 3, pp. 37-45, 1986. Page 97
Page 98