摘要 |
The invention relates in general to the field of task scheduling and in specific to dynamic scheduling of functions within a rate monotonic task in an ECU. The ECU contains tasks ( 10, 12 ). These tasks are software programs which are responsible for functioning of the ECU. The tasks in turn contain functions ( 16 to 25 ). When CPU load is within a set threshold, all the functions ( 16 to 25 ) within the task ( 10 ) run in a pre-determined sequence. But when the CPU load increases because of some critical events occurring at a faster rate and the load crosses a set threshold, the CPU may not be able to run all the tasks and all the functions. The invention proposes a method to dynamically change the frequency of execution of some functions within tasks which are not so critical, thus saving CPU time which can be allocated to other critical tasks or functions. |