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
Have you used threads in Servelet?
Can I run seam with jdk 1.4 and earlier?
Are we allowed to change the transaction isolation property in middle of a transaction?
Do we need to override service() method
What modifiers may be used with an interface declaration?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
Which containers use a border layout as their default layout?
which type of objects reference will be given to client?
Explain the different types of memory used by jvm?
Are enterprise beans allowed to use thread.sleep()?
What if the static modifier is removed from the signature of the main method?
How primary key is implemented in Oracle?
Name three component subclasses that support painting?
What is TL and its use?
What are the call back methods in entity bean?