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


Please Help Members By Posting Answers For Below Questions

Have you used threads in Servelet?

1936


Can I run seam with jdk 1.4 and earlier?

563


Are we allowed to change the transaction isolation property in middle of a transaction?

571


Do we need to override service() method

1147


What modifiers may be used with an interface declaration?

563






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!

1372


Which containers use a border layout as their default layout?

618


which type of objects reference will be given to client?

2034


Explain the different types of memory used by jvm?

614


Are enterprise beans allowed to use thread.sleep()?

652


What if the static modifier is removed from the signature of the main method?

713


How primary key is implemented in Oracle?

1920


Name three component subclasses that support painting?

620


What is TL and its use?

1997


What are the call back methods in entity bean?

570