Guidewire Interview Question

What is difference between optimistic and pessimistic concurrency?