Implementation of the 2V2PL protocol for concurrency control with support for multiple lock granularities and deadlock detection/prevention using the wait-for graph strategy.
mkdir build
, and then navigate into it with cd build
.build
directory, generate the necessary build files (Makefile) by running cmake ..
.make
../main/main
.The program will then wait for input representing operations on the objects defined in the database schema. The schema is provided below:
w0(a) r1(b) u2(c) w3(a) c0 c1 c2 c3