Multi-task priority scheduling method for attendance machine of internet of things
暂无分享,去创建一个
The invention relates to a multi-task priority scheduling method for an attendance machine of the internet of things. The method comprises the following steps: setting Priority as a task importance factor for each task of the attendance machine, wherein Urgency represents emergency; when a new task arrives, judging whether the sum of the central processing unit (CPU) total occupation ratio of the new task and the original multiple tasks exceeds the upper bound by 1.0 by using a task admittance control module; if the sum of the CPU total occupation ratio of the new task and the original multiple tasks does not exceed the upper bound by 1.0, admitting the work; if the sum of the CPU total occupation ratio of the new task and the original multiple tasks exceeds the upper bound by 1.0, comparing the importance priority of the task with the highest priority between the new task and the original multiple tasks of the system; if the importance priority of the new task is low, refusing the new task; if the importance priority of the new task is high, removing the task at the tail of Priority_first in first out (FIFO) queue and supplementing a new task; and realizing task scheduling. The invention provides the multi-task priority scheduling method for the attendance machine of the internet of things, which takes importance and urgency into consideration and has high scheduling efficiency.