What is the difference between a lock and a latch?
Then, how does a latch lock work?
Once the bolt passes a certain point, it will fully extend and quickly lock into the strike plate due to the pressure being released from the spring, securing the door and holding it closed. Latches are designed to retract and disengage when someone turns the door handle to open the door.
Similarly one may ask, what is latch in DBMS?
Latches are low level serialization mechanisms used to protect shared data structures in the SGA. The implementation of latches is operating system dependent, particularly in regard to whether a process will wait for a latch and for how long. A latch is a type of a lock that can be very quickly acquired and freed.
Latchbolt. A common latch type, it is a spring-loaded bolt with an angled edge. When the door is pushed closed, the angled edge of the latchbolt engages with the lip of the strike plate; a spring allows the bolt to retract.