Evaluation Modelling with Concurrency In Database Management via Some Algorithms

Evaluation Modelling with Concurrency In Database Management via Some Algorithms

Tayyebeh Mohammadi1 Hadi Alipour2 Seyed Ali Razavi Ebrahimi3

1) MSc student, Department of Computer and Information Technology, Payam Noor University, Tehran, Iran Email:
2) MSc student, Department of Computer and Information Technology, Payam Noor University, Tehran, Iran Email:
3) Assistant Professor, Payam Noor University, Department of Computer and Information Technology, Payam Noor University, Tehran, Iran, Email:

IOI Code : XYGD-BCHDD
Publication : The 5th International conference of Sciences and Engineering(5icesconf.com)
Abstract :
    Run concurrent transactions in a database management system may result in inconsistency. Inconsistency is as the result of incorrect values that is created for data available as a result of conflict and interference in running transactions. Concurrency control algorithms to ensure concurrent running of multiple transactions are designed that work concurrently with shared data. A great deal of research has been done in the field of database concurrency control, which results in various concurrency control algorithms. A lot of studies can been done in the area of evaluating concurrency control algorithms due to various algorithms in this area and the fact that its importance will increase day by day. In this paper, firstly basic two-stage locking concurrency control algorithms as well as techniques of wound - wait and wait - die modeled that including the techniques of preventing deadlock. Since the colored Petri Net have high modeling capabilities and one of the best ways to analyze the concurrency control mechanisms; so that modeling were provided using colored Petri and CPN Tools. A simple case study was presented as an example to better understand which include three transaction and two sources. Evaluation based on the parameters and criteria such as number of transactions entered into the system, the number of orders for each transaction, the number of common and non-common data between the transactions and the number of common data in transactions without non-common data had taken place. By comparing and conducting surveys, it turned out that in general, wound- wait algorithm had better running time compared to other two algorithms. Wait- die algorithm in terms of run time with a large difference was in worse level compared to the other two algorithms and basic two-phase locking algorithm due to the occurrence of deadlock had many problems.

Keywords : concurrency control color petri net evaluation deadlock deadlock prevention