Patent ID: 7434222

Claim:
A method of chained switching execution of data processing tasks, comprising: executing a third data processing task until a task switching opportunity occurs; calling a task switching function with the third data processing task to store a context of the third data processing task in a register when the task switch opportunity occurs; executing a second data processing task until a second task switching opportunity occurs; calling the task switching function with the second data processing task to store the context of the second data processing task linked ahead of the context of the third data processing task in the register when the second task switching opportunity occurs: executing a first data processing task; executing a return call to the task switching function with the first data processing task; selecting a third return address from the register based on the return call with the task switching function while maintaining the storage of a second return address; and executing a return operation to the data processing task corresponding to the selected return address with the task switching function.