mysql之线程

#########################

 

 

 

 

b)四大I/O线程

  • read/write thread:数据库的读写请求线程,默认值是4个,如果使用高转速磁盘,可适当调大该值
  • redo log thread:把日志缓存中的内容刷新到redo log文件中
  • change buffer thread:把插入缓存(change buffer)中的内容刷新到磁盘中

c)page cleaner thread

负责脏页刷新线程,可增加多个

d)purge thread

负责删除无用的undo页

由于进行DML语句操作都会生成undo,系统需要定期对undo页进行清理,这时就需要purge操作

purge默认线程个数是1个,最大可调整至32个

e)checkpoint线程

在redo log发生切换时,执行checkpoint。

redo log 发生切换或文件快写满时,会触发把脏页刷新到磁盘,确保redo log刷新到磁盘,实现真正的持久化,避免数据丢失

error monitor thread :负责数据库报错的监控线程

lock monitor thread :负责锁的监控线程

 

 

 

 

 

 

 

 

 

 

 

 

 

#######################

posted @ 2019-10-24 09:25  igoodful  阅读(188)  评论(0编辑  收藏  举报