摘要 |
PROBLEM TO BE SOLVED: To provide a test-and-set bypassing method capable of reducing memory bandwidth usage by spin locking to allow access to a semaphore. SOLUTION: This bypassing method is used as a computer-based method for preventing asynchronous access to a shared resource by a plurality of request devices, and comprises steps for: checking a storage comparison device for whether or not a semaphore address corresponding to the storage location of the shared resource is present in it; transmitting a semaphore fail signal when the semaphore address is present in the storage comparison device; and checking the content of the semaphore when the semaphore address is not present in the storage comparison device. When the semaphore is locked as a result of the check, the semaphore address is stored in the storage comparison device. When the semaphore is not locked, the semaphore is locked, the semaphore address is stored in the storage comparison device and the storage location is accessed. COPYRIGHT: (C)2004,JPO&NCIPI |