首页> 外国专利> System and Method for Implementing Hierarchical Queue-Based Locks Using Flat Combining

System and Method for Implementing Hierarchical Queue-Based Locks Using Flat Combining

机译:使用平面组合实现基于分层队列的锁的系统和方法

摘要

The system and methods described herein may be used to implement a scalable, hierarchal, queue-based lock using flat combining. A thread executing on a processor core in a cluster of cores that share a memory may post a request to acquire a shared lock in a node of a publication list for the cluster using a non-atomic operation. A combiner thread may build an ordered (logical) local request queue that includes its own node and nodes of other threads (in the cluster) that include lock requests. The combiner thread may splice the local request queue into a (logical) global request queue for the shared lock as a sub-queue. A thread whose request has been posted in a node that has been combined into a local sub-queue and spliced into the global request queue may spin on a lock ownership indicator in its node until it is granted the shared lock.
机译:本文描述的系统和方法可以用于使用平面组合来实现可伸缩的,基于层次的,基于队列的锁。在共享内存的内核集群中的处理器内核上执行的线程可以使用非原子操作在集群的发布列表的节点中发布获取共享锁的请求。组合器线程可以构建一个有序的(逻辑)本地请求队列,该队列包括它自己的节点以及其他(包括群集中的)包含锁定请求的其他线程的节点。组合器线程可以将本地请求队列拼接为共享子锁的(逻辑)全局请求队列,作为子队列。在其节点中已发布请求的线程已被组合到本地子队列中并被拼接到全局请求队列中,该线程可以在其节点上旋转锁所有权指示符,直到被授予共享锁为止。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号