Techniques for switching threads within routes
Abstract
Various technologies and techniques are disclosed for switching threads within routines. A controller routine receives a request from an originating routine to execute a coroutine, and executes the coroutine on an initial thread. The controller routine receives a response back from the coroutine when the coroutine exits based upon a return statement. Upon return, the coroutine indicates a subsequent thread that the coroutine should be executed on when the coroutine is executed a subsequent time. The controller routine executes the coroutine the subsequent time on the subsequent thread. The coroutine picks up execution at a line of code following the return statement. Multiple return statements can be included in the coroutine, and the threads can be switched multiple times using this same approach. Graphical user interface logic and worker thread logic can be co-mingled into a single routine.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: executing an initial portion of a routine on an initial thread; processing a return statement that is a yield statement, the processing of the return statement causing the routine to temporarily exit the routine at an end point of the initial portion; identifying a subsequent thread different than the initial thread via the return statement, the return statement provided in response to the executing of the initial portion; and performing a subsequent execution of the routine via the return statement, the subsequent execution executing a subsequent portion of the routine fr
- Claim 2Independent Claim
A system comprising: memory to store instructions; a processor to execute the instructions to: execute an initial portion of a routine on an initial thread; process a return statement
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (17)
Non-Patent Literature (2)
- Kumar et al, "Asynchronous Software Thread Integration for Efficient Software Implementations of Embedded Communication Protocol Controllers", LCTES'04, Jun. 11, 2013, 2004, ACM, pp. 1-10 (Year: 2004).
- Moura et al, "Revisiting Coroutines", PUC-Riolnf.MCC15/4, Jun. 2004, pp. 1-31 plus cover sheet (Year: 2004).