TECHNIQUES FOR SWITCHING THREADS WITHIN ROUTINES

Patent №

US 10,698,726

Granted

2020-06-30

Filed 2018

Owner

MICROSOFT CORPORATION

AI components

2

kr · hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

16018427

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.

Knowledge representationAI hardwareG06F 9/4806G06F 9/4484G06F 9/46G06F 9/461G06F 9/48G06F 9/4843G06F 9/485G06F 9/4856+7 more

AI classification

AI hardware0.68
Knowledge representation0.56
Natural language0.15
Planning0.01
Vision0.00
Evolutionary computation0.00
Speech0.00
Machine learning0.00

Ownership

MICROSOFT CORPORATION

assignment · 462010985

Assignors

CWALINA, KRZYSZTOF

On an employer assignment, the assignors are typically the inventors.

© 2026 NYSGPT2525 LLC