## 8.11 Optimizing Locking Operations

[8.11.1 Internal Locking Methods](internal-locking.html)
[8.11.2 Table Locking Issues](table-locking.html)
[8.11.3 Concurrent Inserts](concurrent-inserts.html)
[8.11.4 Metadata Locking](metadata-locking.html)
[8.11.5 External Locking](external-locking.html)

 MySQL manages contention for table contents using [locking](glossary.html#glos_locking):

* Internal locking is performed within the MySQL server itself to manage contention for table contents by multiple threads. This type of locking is internal because it is performed entirely by the server and involves no other programs. See [Section 8.11.1, “Internal Locking Methods”](internal-locking.html).

* External locking occurs when the server and other programs lock [`MyISAM`](myisam-storage-engine.html) table files to coordinate among themselves which program can access the tables at which time. See [Section 8.11.5, “External Locking”](external-locking.html).

