ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 8.11 优化锁操作 MySQL 使用[锁](https://dev.mysql.com/doc/refman/8.0/en/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”](https://dev.mysql.com/doc/refman/8.0/en/internal-locking.html). - External locking occurs when the server and other programs lock [`MyISAM`](https://dev.mysql.com/doc/refman/8.0/en/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”](https://dev.mysql.com/doc/refman/8.0/en/external-locking.html).