Plot Something - ME 405 Term Project
|
This file contains classes to run cooperatively scheduled tasks in a multitasking system. More...
Classes | |
class | cotask.Task |
Implements multitasking with scheduling and some performance logging. More... | |
class | cotask.TaskList |
A list of tasks used internally by the task scheduler. More... | |
Variables | |
cotask.task_list = TaskList () | |
This is the main task list which is created for scheduling when cotask.py is imported into a program. | |
This file contains classes to run cooperatively scheduled tasks in a multitasking system.
Tasks are created as generators, functions which have infinite loops and call yield
at least once in the loop. References to all the tasks to be run in the system are kept in a list maintained by class CoTaskList
; the system scheduler then runs the tasks' run()
methods according to a chosen scheduling algorithm such as round-robin or highest-priority-first.