10bet网址
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr)- 36.3Mb
PDF (A4)- 36.3Mb
Man Pages (TGZ)- 236.9Kb
Man Pages (Zip)- 348.5Kb
Info (Gzip)- 3.4Mb
Info (Zip)- 3.4Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual/Optimization/ Optimizing Locking Operations

8.11 Optimizing Locking Operations

MySQL manages contention for table contents usinglocking:

  • 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. SeeSection 8.11.1, “Internal Locking Methods”.

  • External locking occurs when the server and other programs lockMyISAMtable files to coordinate among themselves which program can access the tables at which time. SeeSection 8.11.5, “External Locking”.