I understand the differences between optimistic and pessimistic locking. Now could someone explain to me when I would use either one in general?
And does the answer
In addition to what's been said already:
optimistic
Pessimistic