mysql是用啥语言写的_mysql源码是什么语言
mysql的內存管理龐大而先進,這在mem0pool.c文件的開頭注釋中都有說明,粗略的可以分成四部分,包含9大塊:
九大塊:buffer pool,
parsed andoptimized SQL statements,
data dictionarycache,
log buffer,
locks for eachtransaction,
hash table forthe adaptive index,
state andbuffers for each SQL query currently being executed,
session foreach user, and
stack for eachOS thread.
9大塊通過4部分進行管理A solution tothe memory management:
1. the bufferpool size is set separately;
2. log buffersize is set separately;
3. the commonpool size for all the other entries, except 8, is set separately.
也就是緩沖池,redo日志緩沖,普通池和8(用戶session信息,可看做一部分)
redo日志緩沖由redo部分單獨管理,bufferpool也就是緩沖池是一個復雜的部分,內容很多,普通池上面說了,除了8,和1,2.其余的都歸它管。
MySQL是用C++開發的。
MySQL的官方網站http://www.mysql.com/上有源碼下載,是C++的
總結
以上是生活随笔為你收集整理的mysql是用啥语言写的_mysql源码是什么语言的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 交换机SERDES介绍
- 下一篇: 最新的win10精简版V2004