How do DBMS handle optimistic locking?

Original text of this message