摘要 |
PURPOSE:To discriminate an occupied processor or task by writing a processor number or a task number simultaneously with a semaphore onto a semaphore memory. CONSTITUTION:When a processor 12 updates some common data, the processor 12 reads out a semaphore in order to check a value of the semaphore, and when the value of the semaphore is '0', the processor 12 updates the value of the semaphore to '1', adds a processor number corresponding to the processor 12 to the semaphore and writes it is a semaphore memory. In such a state, the processor 12 executes an instruction of a danger area. When a fault of the processor 12 is generated, the processor 12 applies an interruption to other normal processor. The processor which has received the interruption can discriminate the processor which has generated the fault, by retrieving the semaphore obtained by the processor which has generated the fault. |