What is Lock Based Protocol and what is its use?
Answer Posted / amit yadav
A lock is a mechanism to control concurrent access to a data
item
Data items can be locked in two modes :
1. exclusive (X) mode. Data item can be both read as well as
written. X-lock is requested using lock-X instruction.
2. shared (S) mode. Data item can only be read. S-lock is
requested using lock-S instruction.
Lock requests are made to concurrency-control manager.
Transaction can
proceed only after request is granted.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How are the elements of a cardlayout organized?
What is threadfactory?
What is abstract schema?
Why are my checkboxes not being set from on to off?
What state does a thread enter when it terminates its processing?
Name three component subclasses that support painting?
wahts is mean by dynavalidatorform in struts/
How to implement RMI in Java?
How is a java object message delivered to a non-java client?
What is the purpose of the wait(), notify(), and notifyall() methods?
Why are component architectures useful?
Why a component architecture for the java platform?
What is a modular application? What does module-relative mean?
What is the difference between the session.update() method and the session.lock() method?
Is the ternary operator written x : y ? Z or x ? Y : z ?