4,015 views
4 votes
4 votes

Which of the following is correct ?

I. Two phase locking is an optimistic protocol.

II. Two phase locking is pessimistic protocol

III. Time stamping is an optimistic protocol.

IV. Time stamping is pessimistic protocol. 

  1. $I$ and $III$
  2. $II$ and $IV$
  3. $I$ and $IV$ 
  4. $II$ and $III$ 

1 Answer

Best answer
6 votes
6 votes
ans will be B
This validation scheme is called the optimistic concurrency-control scheme since transactions execute optimistically, assuming they will be able to finish execution and validate at the end.

In contrast, locking and timestamp ordering are pessimistic in that they force a wait or a rollback whenever a conflict is detected,
even though there is a chance that the schedule may be conflict serializable.  
Korth pg 689                            
In optimistic concurrency control techniques, also known as validation or certification techniques, no checking is done while the transaction is executing. Several proposed concurrency control methods use the validation technique

navathe pg 608
edited by
Answer:

Related questions

2 votes
2 votes
1 answer
1
2 votes
2 votes
2 answers
2
6 votes
6 votes
2 answers
3
4 votes
4 votes
2 answers
4