- A transaction T that wants
to read a
DB element
first acquires
a shared lock
- We set the
state of the
lock to
SHARED
|
- When transaction T wants
to write a
DB element
later,
it can
update the
shared lock
to an
exclusive lock:
- We simply
set the
state of the
lock to
EXCLUSIVE
|
|