Acquire Lock Algorithm
Lucian Lazar edited this page Jun 23, 2022
·
3 revisions
used for reading;
shared locks can be acquired when other shared or write exclusive locks already exist on the resource;
cannot be acquired when a full exclusive lock already exists on the resource.
used for writing;
write exclusive locks can be acquired when shared locks already exist on the resource;
cannot be acquired when other write exclusive or full exclusive lock already exist on the resource.
strictly exclusive;
can be acquired only when no other locks exist on the resource.