摘要 |
In the field of time partitioning, in order to suppress interrupt processing execution delays and prevent processing breakdown, even when interrupt processing is being executed, a safety control device is provided with: a processor; a system programme for controlling the allocation of processor execution time to a safety-related task, non-safety-related task, and interrupt processing task; and an interrupt processing handler. The processor makes an execution reservation, using the interrupt handler, for an interrupt processing task, as a task reserved for execution when an interrupt occurs, and schedules tasks, in the system programme, according to scheduling information on a safety-related TP to which a safety related task belongs, a non-safety-related TP to which a non-safety-related task belongs, and a reserved execution TP to which a reserved execution task belongs, and when the execution of the task of the TP before the reserved execution TP has been completed before the completion of the TP period, the processor allocates the execution time of the previous TP to the reserved execution task. |