首页> 外国专利> METHOD AND APPARATUS FOR USING A SHARED RING BUFFER TO PROVIDE THREAD SYNCHRONIZATION IN A MULTI-CORE PROCESSOR SYSTEM

METHOD AND APPARATUS FOR USING A SHARED RING BUFFER TO PROVIDE THREAD SYNCHRONIZATION IN A MULTI-CORE PROCESSOR SYSTEM

机译:在多核处理器系统中使用共享环缓冲区提供线程同步的方法和装置

摘要

An apparatus and method for improving synchronization between threads in a multi-core processor system are provided. An apparatus includes a memory, a first processor core, and a second processor core. The memory includes a shared ring buffer for storing data units, and stores a plurality of shared variables associated with accessing the shared ring buffer. The first processor core runs a first thread and has a first cache associated therewith. The first cache stores a first set of local variables associated with the first processor core. The first thread controls insertion of data items into the shared ring buffer using at least one of the shared variables and the first set of local variables. The second processor core runs a second thread and has a second cache associated therewith. The second cache stores a second set of local variables associated with the second processor core. The second thread controls extraction of data items from the shared ring buffer using at least one of the shared variables and the second set of local variables.
机译:提供了一种用于改善多核处理器系统中的线程之间的同步的设备和方法。一种设备,包括存储器,第一处理器核和第二处理器核。存储器包括用于存储数据单元的共享环形缓冲区,并且存储与访问共享环形缓冲区相关联的多个共享变量。第一处理器核运行第一线程并具有与其相关联的第一高速缓存。第一高速缓存存储与第一处理器核相关联的第一局部变量的第一集合。第一线程使用共享变量和第一组局部变量中的至少一个控制将数据项插入共享环形缓冲区。第二处理器核心运行第二线程并具有与其相关联的第二高速缓存。第二高速缓存存储与第二处理器核心相关联的第二局部变量集合。第二线程使用共享变量和第二组局部变量中的至少一个来控​​制从共享环形缓冲区提取数据项。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号