When is a lock in database used?
When you want to protect the data from outside attacks
When there are users accessing the same data simultaneously
When there is a chance for database to go down
When database maintenance is going on