Mambu Interview Question

What does pessimistic locking mean in database context?