Invention Grant
US09003377B2 Efficient resumption of co-routines on a linear stack 有权
在线性堆栈上有效恢复协同程序

Efficient resumption of co-routines on a linear stack
Abstract:
Unsuspended co-routines are handled by the machine call stack mechanism in which the stack grows and shrinks as recursive calls are made and returned from. When a co-routine is suspended, however, additional call stack processing is performed. A suspension message is issued, and the entire resume-able part of the call stack is removed, and is copied to the heap. A frame that returns control to a driver method (a resumer) is copied to the call stack so that resumption of the co-routine does not recursively reactivate the whole call stack. Instead the resumer reactivates only the topmost or most current frame called the leaf frame. When a co-routine is suspended, it does not return to its caller, but instead returns to the resumer that has reactivated it.
Public/Granted literature
Information query
Patent Agency Ranking
0/0