Question

Discuss pros and cons of pessimistic concurrency in relation to optimistic concurrency. Discuss pros and cons...

Discuss pros and cons of pessimistic concurrency in relation to optimistic concurrency. Discuss pros and cons of explicit transactions in relation to implicit transactions and vice versa.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Pros of pessimistic concurrency:

  1. Transactions are executed correctly.
  2. DB is maintained very stable and data is maintained very consistent.

Cons:

Huge run time

Pros of optimistic concurrency:

  1. More efficient and reliably safe transactions.

Cons:

Data interference is at higher risk.

Inconsistent data and errors may cause DB worse.

Explicit transactions:

Pros:

It has beginning and roll back command.

Errors can be rollback in this method.

Cons:

We have to write our own code to start the transactions.

Implicit transactions:

Pros:

It is an auto commit.      

Cons:

Errors cannot be roll back here.

If the above solution is helpful to you in any way please rate it Or if you have any concerns please comment it, I will help you through

Add a comment
Know the answer?
Add Answer to:
Discuss pros and cons of pessimistic concurrency in relation to optimistic concurrency. Discuss pros and cons...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT