Question: Write an algorithm for shared and exclusive locking. How does granularity affect this algorithm?

Write an algorithm for shared and exclusive locking. How does granularity affect this algorithm?

Step by Step Solution

3.32 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

readlock X B if LOCK X unlocked then begin LOCK X read locked noOfReads X 1 end ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

672-CS-DB (1428).docx

120 KBs Word File

Students Have Also Explored These Related Databases Questions!