摘要 |
PURPOSE:To enable plural processors to exclusively use a part to be controlled without using a shared memory by providing the part to be controlled with a register part for semaphore in which exclusive use information of processors for the part to be controlled is stored. CONSTITUTION:When a processor 501 will use a part 8 to be controlled, a register part 7 for semaphore provided in the part 8 to be controlled is read, and the processor 501 starts to use the part 8 to be controlled if the read value indicates that the part 8 to be controlled is not used. Simultaneously, logical '1' is set to the register part 7 by the processor 501. If another processor 502 reads the register part 7 at this time for the purpose of using the part 8 to be controlled, it is judged that the part 8 to be controlled is used because the read value is logical '1', and the processor 502 is set to the holding state. When the processor 501 terminates the use of the part 8 to be controlled, the register part 7 is set to logical '0' to enable another processor to use the part 8 to be controlled. |