首页> 外国专利> Using hardware support to reduce synchronization costs in multithreaded applications

Using hardware support to reduce synchronization costs in multithreaded applications

机译:使用硬件支持来减少多线程应用程序中的同步成本

摘要

A processor configured to synchronize threads in multithreaded applications. The processor includes first and second registers. The processor stores a first bitmask in the first register and a second bitmask in the second register. For each bitmask, each bit corresponds with one of multiple threads. A given bit in the first bitmask indicates the corresponding thread has been assigned to execute a portion of a unit of work. A corresponding bit in the second bitmask indicates the corresponding thread has completed execution of its assigned portion of the unit of work. The processor receives updates to the second bitmask in the second register and provides an indication that the unit of work has been completed in response to detecting that for each bit in the first bitmask that corresponds to a thread that is assigned work, a corresponding bit in the second bitmask indicates its corresponding thread has completed its assigned work.
机译:处理器,配置为同步多线程应用程序中的线程。处理器包括第一和第二寄存器。处理器将第一位掩码存储在第一寄存器中,将第二位掩码存储在第二寄存器中。对于每个位掩码,每个位对应于多个线程之一。第一位掩码中的给定位指示已分配了相应的线程以执行工作单元的一部分。第二位掩码中的相应位指示相应的线程已完成其工作单元分配部分的执行。处理器接收到对第二寄存器中第二位掩码的更新,并响应于检测到对于第一位掩码中与分配了工作的线程相对应的每个位中的对应位,指示工作单元已完成。第二个位掩码指示其相应的线程已完成其分配的工作。

著录项

  • 公开/公告号US8359459B2

    专利类型

  • 公开/公告日2013-01-22

    原文格式PDF

  • 申请/专利权人 DARRYL J. GOVE;

    申请/专利号US20080127509

  • 发明设计人 DARRYL J. GOVE;

    申请日2008-05-27

  • 分类号G06F9/44;

  • 国家 US

  • 入库时间 2022-08-21 16:43:56

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号