首页> 外国专利> Facilitating communication and synchronization between main and scout threads

Facilitating communication and synchronization between main and scout threads

机译:促进主线程和侦查线程之间的通信和同步

摘要

One embodiment of the present invention provides a system for communicating and performing synchronization operations between a main thread and a helper-thread. The system starts by executing a program in a main thread. Upon encountering a loop which has associated helper-thread code, the system commences the execution of the code by the helper-thread separately and in parallel with the main thread. While executing the code by the helper-thread, the system periodically checks the progress of the main thread and deactivates the helper-thread if the code being executed by the helper-thread is no longer performing useful work. Hence, the helper-thread is executes in advance of where the main thread is executing to prefetch data items for the main thread without unnecessarily consuming processor resources or hampering the execution of the main thread.
机译:本发明的一个实施例提供了一种用于在主线程和辅助线程之间通信并执行同步操作的系统。系统通过在主线程中执行程序开始。遇到具有关联的辅助线程代码的循环时,系统将分别通过辅助线程并与主线程并行开始执行代码。在通过助手线程执行代码时,如果助手线程正在执行的代码不再执行有用的工作,则系统会定期检查主线程的进度,并停用助手线程。因此,辅助线程在执行主线程以预取用于主线程的数据项之前执行,而不会不必要地消耗处理器资源或妨碍主线程的执行。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号