首页> 外国专利> Partitioned Ticket Locks With Semi-Local Spinning

Partitioned Ticket Locks With Semi-Local Spinning

机译:具有半本地旋转功能的分区票证锁

摘要

A partitioned ticket lock may control access to a shared resource, and may include a single ticket value field and multiple grant value fields. Each grant value may be the sole occupant of a respective cache line, an event count or sequencer instance, or a sub-lock. The number of grant values may be configurable and/or adaptable during runtime. To acquire the lock, a thread may obtain a value from the ticket value field using a fetch-and-increment type operation, and generate an identifier of a particular grant value field by applying a mathematical or logical function to the obtained ticket value. The thread may be granted the lock when the value of that grant value field matches the obtained ticket value. Releasing the lock may include computing a new ticket value, generating an identifier of another grant value field, and storing the new ticket value in the other grant value field.
机译:分区票证锁可以控制对共享资源的访问,并且可以包括单个票证值字段和多个授权值字段。每个授权值可以是相应缓存行,事件计数或定序器实例或子锁的唯一占用者。授权值的数量在运行时间期间可以是可配置的和/或可调整的。为了获取锁,线程可以使用获取和递增类型的操作从票证值字段获得值,并通过将数学或逻辑函数应用于所获取的票证值来生成特定授权值字段的标识符。当该授予值字段的值与所获得的票证值匹配时,可以授予该线程锁定。释放锁可以包括计算新票证值,生成另一个授权值字段的标识符以及将新票证值存储在另一个授权值字段中。

著录项

  • 公开/公告号US2012240126A1

    专利类型

  • 公开/公告日2012-09-20

    原文格式PDF

  • 申请/专利权人 DAVID DICE;

    申请/专利号US201113051877

  • 发明设计人 DAVID DICE;

    申请日2011-03-18

  • 分类号G06F9/46;

  • 国家 US

  • 入库时间 2022-08-21 17:34:41

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号