What is Lock Based Protocol and what is its use?

Answers were Sorted based on User's Feedback



What is Lock Based Protocol and what is its use?..

Answer / bhargavi

lock based protocol: Once one transaction is accessing the
data,no other transaction is made to modify the data.

(or)

A locking protocol is a set of rules to be followed by each
transaction to ensure that, even though actions of several
transactions might be interleaved,the net effect is
identical to executing all transactions in some serial order.

Is This Answer Correct ?    55 Yes 9 No

What is Lock Based Protocol and what is its use?..

Answer / 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

More Advanced Java Interview Questions

what is a Daemon Thread?

2 Answers  


What are the sequence of steps to write pub or sub model kind of application?

0 Answers   TCS,


How will the struts know which action class to call when you submit a form?

6 Answers   HeadStrong,


Explain about thread synchronization inside a monitor?

0 Answers   Saksoft,


what is Static binding?

2 Answers   Wipro,






If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

0 Answers  


What is the diffrence between a local-tx-datasource and a xa-datasource?

0 Answers  


Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.

2 Answers  


how can we load a file of a user in the database table?

3 Answers   ITC Infotech,


Why are some of the class and element names counter-intuitive?

0 Answers  


What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


Explain the steps in details to load the server object dynamically?

0 Answers  


Categories