Efficient resumption of co-routines on a linear stack
AssigneeMicrosoft Technology Licensing, LLC
InventorsNeal M. Gafter, Mads Torgersen, Henricus Johannes Maria Meijer, Niklas Gustafsson
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsNeal M. Gafter, Mads Torgersen, Henricus Johannes Maria Meijer, Niklas Gustafsson
Estimating the term…
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.
A system comprising:
A method comprising:
A hardware memory, comprising computer-executable instructions which when executed cause at least one processor to:
Dependencies are inferred from the claim text.