Skip to the content.

This is actually the concept that inspired this site. I was reading about MySQL as a Db2 expert, and kept reading the term ‘mutex’. After the second or third time, I looked it up, and went, “Oh, a LATCH!”

General Description

The concept/object covered here is NOT a lock. A lock is on logical objects within a database such as a row or a table. Here, we’re talking about something ensuring exclusive access to some sort of physical object such as a file or a memory location. This is concurrency control on internal objects, not database objects. This is something that any multi-threaded application has to manage, including database management systems.

This is not a concept that is likely to come up or be an issue in the front-lines of either DBA work or of development work. Often if you’re dealing with an issue with this, you’re talking either vendor support, opening an issue, or digging into the code depending on whether the dbms you’re working with is proprietary or open source. It is most likely to come up as an issue in apparent hang situations or in the investigation of unusual performance problems.

DBMS Platform Specifics

Summary

While this isn’t a concept you’re likely to have to deal with in the normal course of running a dbms, it is good to have an understanding of what it is and what it does when digging into thornier performance or hang problems.

Tags

[ dbms-architecture  db2  mysql  ]