Implementation of the 2V2PL protocol for concurrency control with support for multiple lock granularities and deadlock detection/prevention using the wait-for graph strategy.
- Navigate to the root directory of the project.
- Create a build directory by running
mkdir build
, and then navigate into it withcd build
. - Inside the
build
directory, generate the necessary build files (Makefile) by runningcmake ..
. - Compile the project using the generated Makefile by executing
make
. - Once compiled, run the program using the command
./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