CORRECTNESS OF TWO-PHASE LOCKING FOR SCHEDULES WITH SHARED AND EXCLUSIVE LOCKS

Authors

DOI:

https://doi.org/10.17308/sait/1995-5499/2025/3/172-179

Keywords:

database systems, ACID, transaction, locking mechanism, transaction schedule, database consistency, two-phase locking

Abstract

Relational databases are one of the most popular solutions for storing structured data. Modern database management systems have various system components that maintain data integrity, security, and durability. Transactions are used to guarantee the correct execution of operations on the database. In addition to satisfying the atomicity, consistency, isolation, and durability principles, DBMSs must also provide additional mechanisms to preserve the consistent state of database elements under various isolation levels in a concurrent environment.This article examines the principles of transaction management used to ensure the integrity of a re lational database. These principles are based on concepts of scheduling and locking. Properly constructed lock-based schedules prevent concurrency issues caused by simultaneous access of multiple transactions to shared data. To achieve this, various locking protocols are used to regulate locks acquisition and release during transaction execution. As a result, the transaction isolation requirement is satisfied within the system. The main part of this study considers transaction mechanisms and schedule construction, as well as the two-phase locking protocol (2PL). T he main objective of this research is to analyze the correctness of 2PL protocol when using two types of locks — shared and exclusive. The results demonstrate that this protocol can be correctly applied to sets of different lock types, offering a foundation for its application with diverse lock types and encouraging further development of the 2PL method.

Author Biographies

  • Mikhail A. Savin, Voronezh State University

    First-year PhD student at the Programming and Information Technologies Department

  • Sergey D. Makhortov, Voronezh State University

    Doctor of Science, Head of the Programming and Information Technologies Department

References

Gray J. Notes on Data Base Operating Systems // Operating Systems: An Advanced Course. – Springer, 1978. – Vol. 60. – P. 393–481.

Haerder T., Reuter A. Principles of Transaction-Oriented Database Recovery // ACM Computing Surveys. – 1983. – Vol. 15, № 4. – P. 287-317.

Gray J., Reuter A. Transaction Processing: Concepts and Techniques. – San Francisco: Morgan Kaufmann, 1993. – 1070 p.

Traiger I., Galtieri C., Gray J., Lindsay B. Transactions and Consistency in Distributed Database Systems // IBM Research Laboratory. – San Jose, California, 1979. – 17 p.

Gray J. A Transaction Model // IBM Research Laboratory. – San Jose, California, 1980.

Eswaran K. P., Gray J. N., Lorie R. A., Traiger I. L. The notions of consistency and predicate locks in a database system // Communications of the ACM. – 1976. Vol. 19, № 11. – P. 624633.

Гарсиа-Молина Г., Ульман Джеффри Д., Уидом Д. Системы баз данных. Полный курс / Г. Гарсиа-Молина, Д. Ульман, Д. Уидом; пер. с англ. – М. : Вильямс, 2003. – 1088 с.

Махортов С. Д. РСУБД: основы отказоустойчивых систем : учебное пособие для вузов / С. Д. Махортов. – 2-е изд. – Воронеж, 2010. – 136 с.

Published

2025-09-26

Issue

Section

Modern Technologies of Software Development

How to Cite

CORRECTNESS OF TWO-PHASE LOCKING FOR SCHEDULES WITH SHARED AND EXCLUSIVE LOCKS. (2025). Proceedings of Voronezh State University. Series: Systems Analysis and Information Technologies, 3, 172-179. https://doi.org/10.17308/sait/1995-5499/2025/3/172-179

Most read articles by the same author(s)