首页> 外国专利> Lock spin wait operation for multi-threaded applications in a multi-core computing environment

Lock spin wait operation for multi-threaded applications in a multi-core computing environment

机译:多核计算环境中针对多线程应用程序的锁定旋转等待操作

摘要

A method, system and computer-usable medium are disclosed for a lock-spin-wait operation for managing multi-threaded applications in a multi-core computing environment. A target processor core, referred to as a “spin-wait core” (SWC), is assigned (or reserved) for primarily running spin-waiting threads. Threads operating in the multi-core computing environment that are identified as spin-waiting are then moved to a run queue associated with the SWC to acquire a lock. The spin-waiting threads are then allocated a lock response time that is less than the default lock response time of the operating system (OS) associated with the SWC. If a spin-waiting fails to acquire a lock within the allocated lock response time, the SWC is relinquished, ceding its availability for other spin-waiting threads in the run queue to acquire a lock. Once a spin-waiting thread acquires a lock, it is migrated to its original, or an available, processor core.
机译:公开了一种用于锁定旋转等待操作的方法,系统和计算机可用介质,用于在多核计算环境中管理多线程应用程序。为主要运行自旋等待线程分配(或保留)了目标处理器核心,称为“自旋等待核心”(SWC)。然后,将在多核计算环境中运行的被标识为正在等待旋转的线程移到与SWC相关联的运行队列中以获取锁。然后,为自旋等待线程分配了一个锁定响应时间,该响应时间小于与SWC关联的操作系统(OS)的默认锁定响应时间。如果自旋等待未能在分配的锁响应时间内获得锁,则将SWC放弃,让其对运行队列中其他自旋等待线程的可用性转移以获取锁。一旦等待旋转的线程获取了锁,便将其迁移到其原始或可用的处理器内核。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号