首页>
外国专利>
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.
展开▼