摘要 |
A method and apparatus for CPU (102) cycle stealing on a non-preemptive multi-tasking operating system (122) allowing a first application (118) to preempt other applications (114, 116) which are running concurrently on the operating system (122). The steps taken to perform the CPU (102) cycle stealing include: inserting (1, 2, 4) a hook near a starting address of message-monitoring calls (112), and vectoring the execution path to the first application (118) whenever one of the other applications calls the message-monitoring calls (112), allowing the first application (118) to steal CPU (102) cycles from one of the other applications (114, 116). The vectoring is provided by the hook (1, 2, 4) inserted near the starting address of the message-monitoring calls (112).
|