Domanda di colloquio di Guidewire

What is difference between optimistic and pessimistic concurrency?