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
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!
what is Activation Instantinator?
What is a class loader?
what is the use of State Factories?
What is the highest-level event class of the event-delegation model?
To what value is a variable of the string type automatically initialized?
What is permgen or permanent generation?
Describe activation process?
Can we sent objects using Sockets?
How task's priority is used in scheduling?
Is infobus easy to use?
Where can I find seam examples and documentation?
What are the sequence of steps to write pub or sub model kind of application?
Is the session factory thread safe?
What is the difference between RMI registry and OS Agent?