Mambu interview question

What does pessimistic locking mean in database context?