pessimistic locking

Locking data when you read it so nobody else can change it until your transaction finishes.

In more detail

The second transaction waits and then sees the updated state. It is correct under heavy contention, at the cost of lock waits.

Related terms

Taught in

References