Patent ID: 8572619

Claim:
A computerized method to incorporate interrupts in a stable task set for tasks scheduling comprising: creating a plurality of stable task sets, each of the plurality of stable task sets comprising tasks having a same priority level set and each of the tasks having a time period for executing by a processor; Wherein the tasks in the stable task set including one or more of at least one of aperiodic tasks, periodic tasks and interrupts; wherein tasks registered to one of the stable task sets complete their respective executions within the time period allotted to that stable task set, and the tasks must register their respective resource usage requirements, within their respective periods of execution, and deregister their resource requirements when they are no longer needed; wherein interrupts register their worst case resource requirements and the interrupts are initially unmasked in anticipation of an initial interrupt; executing all scheduled tasks in one of the stable task set during the time period allocated for executing of the stable task set; determining that together the all scheduled tasks in the one of the stable task set consume less than a total resources of the processor; and determining a constant value associated with resources overhead used due to context switching between the tasks or instructions that enabling or disabling interrupts during the time period of execution of the stable task set, wherein the interrupts using the worst case resource requirements; checking whether the consume resources and the constant value are less than or equal to the total resources of the processor; and scheduling one of the stable task set having a highest priority among the plurality of stable task and having the checking step result that the consume resources and the constant value are less than or equal to the total resources of the processor.