äCo-routines, a
simple strategy
äWhen the current
activity is ready to transfer control it:
äSaves its context
locally
äContext includes:
registers including the stack pointer, base pointer, instruction pointer, flags etc..
äBranches to an entry
point of the next routine
äThe first
instructions of the called routine restore its context then resumes execution
äThe schedule is
often well defined and hard coded
äCould also use an
intermediate routine to implement a scheduler
äCo-routines with a
user implemented scheduler