【24h】

Poor Man's URCU

机译:穷人的尿布

获取原文

摘要

RCU is, among other things, a well known mechanism for memory reclamation that is meant to be used in languages without an automatic Garbage Collector, unfortunately, it requires operating system support, which is currently provided only in Linux. An alternative is to use Userspace RCU (URCU) which has two variants that can be deployed on other operating systems, named Memory Barrier and Bullet Proof. We present a novel algorithm that implements the three core APIs of RCU: rcu_read_lock(), rcu_read_unlock(), and synchronize_rcu(). Our algorithm uses one mutual exclusion lock and two reader-writer locks with trylock() capabilities, which means it does not need a language with a memory model or atomics API, and as such, it can be easily implemented in almost any language, regardless of the underlying CPU architecture, or operating system.
机译:rcu在其他方面,众所周知的内存填海机制,即在没有自动垃圾收集器的语言中使用的内存填海机制,它需要操作系统支持,目前仅在Linux中提供。替代方案是使用具有两个可以部署在其他操作系统上的两个变体的USPerspace RCU(URCU),命名为内存屏障和子弹证明。我们提出了一种新颖的算法,它实现了RCU的三个核心API:RCU_READ_LOCH(),RCU_READ_UNLOCK()和synchronize_rcu()。我们的算法使用一个相互排除锁和两个读写器锁定具有TryLock()功能,这意味着它不需要具有内存模型或原子的语言,因此,它可以很容易地以任何语言实现,无论如何底层CPU架构或操作系统。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号