A synchronous method for a multi-processor
system and the apparatus thereof are provided. The method comprises the following steps. First, a request for acquiring a
spinlock from a processor is received and then the status of the
spinlock is returned to the processor. If the
spinlock is in an unlock state, the spinlock is changed to a locked state. If the spinlock is already in the locked state, the
clock signal to the processor is suspended so that the processor is suspended and the suspended processor is added to a
queue. Then, when a request for releasing the spinlock is received from a processor, the spinlock is changed to the unlocked state. Finally, if there are other processors waiting in the
queue, one of the processors is selected from the
queue according to a predetermined policy and the
clock signal of the selected processor is resumed.