Invention Grant
- Patent Title: Cooperative scheduling using coroutines and threads
- Patent Title (中): 使用协同程序和线程的协作调度
-
Application No.: US11282504Application Date: 2005-11-18
-
Publication No.: US07784051B2Publication Date: 2010-08-24
- Inventor: Joerg W. Mensing
- Applicant: Joerg W. Mensing
- Applicant Address: DE Walldorf
- Assignee: SAP AG
- Current Assignee: SAP AG
- Current Assignee Address: DE Walldorf
- Agency: Buckley, Maschoff & Talwalkar LLC
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F9/30

Abstract:
A database system may provide definition of a first plurality of tasks associated with coroutine execution, and a second plurality of tasks associated with task-specific thread execution. Also provided may be spawning of a control thread and a plurality of threads, each of the plurality of threads associated with one of the second plurality of tasks, and running of the control thread to determine if a task of the first plurality of tasks and the second plurality of tasks is associated with coroutine execution or with task-specific thread execution. If the task is determined to be associated with coroutine execution, the control thread may be run to swap a coroutine context of the control thread with a coroutine context of the task. If the task is determined to be associated with thread execution, the control thread may be run to resume a thread associated with the task and to suspend the control thread.
Public/Granted literature
- US20070118836A1 Cooperative scheduling using coroutines and threads Public/Granted day:2007-05-24
Information query