首页> 外国专利> System and method for implementing NUMA-aware reader-writer locks

System and method for implementing NUMA-aware reader-writer locks

机译:用于实现可识别NUMa的读写器锁的系统和方法

摘要

NUMA-aware reader-writer locks may leverage lock cohorting techniques to band together writer requests from a single NUMA node. The locks may relax the order in which the lock schedules the execution of critical sections of code by reader threads and writer threads, allowing lock ownership to remain resident on a single NUMA node for long periods, while also taking advantage of parallelism between reader threads. Threads may contend on node-level structures to get permission to acquire a globally shared reader-writer lock. Writer threads may follow a lock cohorting strategy of passing ownership of the lock in write mode from one thread to a cohort writer thread without releasing the shared lock, while reader threads from multiple NUMA nodes may simultaneously acquire the shared lock in read mode. The reader-writer lock may follow a writer-preference policy, a reader-preference policy or a hybrid policy.
机译:意识到NUMA的读写器锁可以利用锁群组技术将来自单个NUMA节点的写入器请求组合在一起。锁可以放宽锁安排读卡器线程和写入器线程执行代码的关键部分的顺序,从而允许锁所有权长时间驻留在单个NUMA节点上,同时还可以利用读取器线程之间的并行性。线程可能会争用节点级结构来获得获取全局共享的读写器锁的权限。编写器线程可以遵循一种锁定同类策略,即在不释放共享锁的情况下将写模式下的锁所有权从一个线程传递给同类编写器线程,而来自多个NUMA节点的阅读器线程可以在读取模式下同时获取共享锁。读者-作家锁定可以遵循作家-偏好策略,读者-偏好策略或混合策略。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号