发明名称 Cooperative preemption
摘要 Preempting the execution of a thread is disclosed. Preempting includes receiving an indication that a preemption of the thread is desired and context switching the thread out at a thread safe point in the event that a thread safe point is reached.
申请公布号 US9336005(B2) 申请公布日期 2016.05.10
申请号 US201313963879 申请日期 2013.08.09
申请人 Azul Systems, Inc. 发明人 Tene Gil;Wolf Michael A.;Sellers Scott;Choquette Jack H.
分类号 G06F9/46;G06F9/38;G06F9/30;G06F9/345;G06F9/355 主分类号 G06F9/46
代理机构 Van Pelt, Yi & James LLP 代理人 Van Pelt, Yi & James LLP
主权项 1. A method, including: receiving, at a processor, a first indication that a first thread is to be preempted; in response to receiving the first indication, waiting for the first thread to reach a thread safe point, the thread safe point comprising a point in code at which a state of the first thread is such that an operation by another thread can be performed on the first thread; in the event that the first thread reaches the thread safe point, context switching the first thread out at the thread safe point and context switching a second thread in; and in the event that, while waiting for the first thread to reach the thread safe point, it is detected that a second indication has been received, in response to the detection that the second indication has been received, preemptively context switching the first thread out and context switching the second thread in.
地址 Sunnyvale CA US