Research Article

An Improved Task Scheduling Algorithm for Intelligent Control in Tiny Mechanical System

Algorithm 1

(1) Input: ;
(2) = , and allocating preemptive threshold to task .
(3) Initializing ;
(4) Calculating by formula (19);
(5) Assigning to separately;
(6) , returning to Step (4) till all are calculated.
(7) for ,
(8) Obtaining all preemptive time threshold by formula (20) and (21).
(9) endfor
(10) for tasks
(11) Calculating max delay , and min delay min delay.
(12) endfor
(13) Output: and .