Task scheduling method of embedded software

2013 
A task scheduling method of embedded software comprises a step of kernel initialization of task scheduling, wherein a waiting task queue, a to-be-activated task queue and a maximum task number are defined, and a task timer is set up; a step of task building, wherein a task function pointer and response time need to be appointed; a step of task deletion, wherein a task is searched inside the waiting task queue, and the task function pointer corresponding to the task is emptied; a step of updating task waiting time, wherein the waiting time of the task in the waiting task queue is updated regularly, and if the waiting time is zero, the task is put into the to-be-activated task queue; and a step of obtaining a to-be-activated task, wherein whether the task function pointer of the task in the to-be-activated task queue is emptied or not is checked, and if not, a function is executed.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []