ITPub博客

首页 > 应用开发 > IT综合 > mutex compare latch

mutex compare latch

原创 IT综合 作者:blueocean926 时间:2009-06-05 11:06:27 0 删除 编辑
oracle10g引入了mutexes的概念
mutexes和latch有部分相似处
latch 和 mutexes在机制上都是一个串行概念,但是mutex在使用上比latch更加轻量级别
简单理解
latch可以保护多个对象,当要访问latch保护的对象时,latch本身也有可能成为一个争用的对象
mutexes相对来说处理比较灵活,在访问对应对象时,mutexes会衍生一个新的mutex针对要保护的对象
多个session可以共享的使用一个mutex(Shared),单个session也可以独占的使用一个mutex(eXclusive)

In 10.2, the only client of mutexes is kks (Kernel Kompile Shared)
i.e. the shared cursor component of the library cache.
In future releases, other clients may also start using mutexes

·In 10.2.0.1, the mutex code path for pin replacement is only activated
when _kks_use_mutex_pin is set to true (in 10.2.0.2+, this is the default).
When this code path is in effect, library cache pins are not used,
and so the 'library cache pin*' related wait events will not be seen[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/48010/viewspace-1022822/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    52
  • 访问量
    176961