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?
Brief description about local interfaces?
How substring() method of string class create memory leaks?
What is the highest-level event class of the event-delegation model?
Name the class that is used to bind the server object with RMI Registry?
Why do I get a duplicate name error when loading a jar file?
What happens when a thread cannot acquire a lock on an object?
What is the purpose of the wait(), notify(), and notifyall() methods?
What class is used to create Server side object ?
To identify IDL language what mapping mechanism is used?
How task's priority is used in scheduling?
Can I run seam with jdk 1.4 and earlier?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Can I have an action without a form?
What restrictions are placed on the location of a package statement within a source code file?